.hobbies-page {
  --page-background-image: url("../img/bg-goose-pencil-all.png");
}

.hobby-kicker {
  margin: 0 0 0.2rem;
  color: #6c5631;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hobby-group {
  max-width: 66rem;
  margin: 2rem auto 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(108, 86, 49, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(33, 37, 41, 0.16);
}

.hobby-group-heading {
  max-width: 38rem;
  margin: 0 auto;
}

.hobby-group-heading h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.hobby-group-heading p:last-child {
  margin-bottom: 0;
  color: #4f565c;
}

.hobby-group .category-tile-grid {
  margin-top: 1.25rem;
}

.hobby-group .category-tile {
  border: 1px solid rgba(33, 37, 41, 0.08);
  box-shadow: 0 7px 20px rgba(33, 37, 41, 0.12);
}

.collection-note {
  max-width: 38rem;
  margin: 2rem auto 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(108, 86, 49, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(33, 37, 41, 0.16);
}

.collection-note .tile-activity-icon {
  margin: 0 auto 0.75rem;
}

.collection-note h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.collection-note p {
  margin-bottom: 0;
  color: #4f565c;
}

.coin-history {
  color: #222629;
}

.coin-history-shell {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem) 0;
}

.coin-breadcrumb {
  display: flex;
  margin: 0 0 1rem;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.coin-breadcrumb a,
.coin-breadcrumb span {
  display: inline-block;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 10px rgba(33, 37, 41, 0.12);
  color: #4a5055;
  font-size: 0.78rem;
  font-weight: 700;
}

.coin-breadcrumb a:hover {
  color: #0056b3;
}

.coin-breadcrumb [aria-current="page"] {
  color: #6c5631;
}

.coin-hero,
.coin-overview,
.history-era,
.coin-reference,
.coin-sources {
  border: 1px solid rgba(108, 86, 49, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(33, 37, 41, 0.16);
}

.coin-hero {
  display: grid;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}

.coin-hero h1 {
  max-width: 16ch;
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(2rem, 6vw, 4.25rem);
  line-height: 0.98;
}

.coin-hero .lead {
  max-width: 42rem;
  margin-bottom: 0;
  color: #42484d;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
}

.coin-hero-art {
  display: grid;
  width: clamp(8rem, 19vw, 12rem);
  aspect-ratio: 1;
  border: 8px solid #bd8f3d;
  clip-path: polygon(25% 0, 75% 0, 93% 7%, 100% 25%, 100% 75%, 93% 93%, 75% 100%, 25% 100%, 7% 93%, 0 75%, 0 25%, 7% 7%);
  place-items: center;
  background: radial-gradient(circle, #f2d28d 0 52%, #d4a54f 53% 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.45), 0 10px 24px rgba(76, 55, 20, 0.24);
  color: #453315;
  text-align: center;
}

.coin-hero-art strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
}

.coin-hero-art span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coin-facts {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.coin-fact {
  padding: 1rem;
  border: 1px solid rgba(108, 86, 49, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(33, 37, 41, 0.1);
}

.coin-fact dt {
  margin-bottom: 0.3rem;
  color: #765f36;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coin-fact dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
}

.coin-overview,
.coin-reference,
.coin-sources {
  margin-top: 1rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
}

.coin-overview h2,
.coin-reference h2,
.coin-sources h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.coin-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

.coin-overview-grid p {
  margin: 0;
}

.era-nav {
  display: flex;
  margin: 1rem 0;
  padding: 0.75rem;
  overflow-x: auto;
  gap: 0.55rem;
  border: 1px solid rgba(108, 86, 49, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 22px rgba(33, 37, 41, 0.12);
  scrollbar-width: thin;
}

.era-nav a {
  flex: 0 0 auto;
  padding: 0.44rem 0.7rem;
  border-radius: 999px;
  background: #f1ece3;
  color: #443a29;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.era-nav a:hover,
.era-nav a:focus-visible {
  background: #dfcfb0;
  color: #212529;
}

.history-era {
  display: grid;
  margin-top: 1rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  grid-template-columns: minmax(8rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem 1.5rem;
  scroll-margin-top: 1rem;
}

.era-marker {
  align-self: start;
  padding: 0.85rem;
  border-radius: 14px;
  background: #efe6d5;
  color: #4a3c25;
}

.era-marker span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.era-marker strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.35rem;
  line-height: 1.05;
}

.era-content h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.era-content {
  min-width: 0;
}

.era-content h3 {
  margin-top: 1.25rem;
  font-size: 1.05rem;
}

.era-content p:last-child {
  margin-bottom: 0;
}

.coin-equation {
  display: grid;
  margin: 1rem 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.coin-equation span {
  padding: 0.65rem;
  border-radius: 10px;
  background: #f6f3ed;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.coin-pair {
  display: flex;
  margin: 1rem 0 0;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.coin-pair figure {
  margin: 0;
  text-align: center;
}

.coin-pair img {
  display: block;
  width: 8.8rem;
  height: 8.8rem;
  padding: 0.35rem;
  border: 1px solid rgba(33, 37, 41, 0.13);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.coin-pair figcaption {
  margin-top: 0.35rem;
  color: #666d72;
  font-size: 0.7rem;
  font-weight: 700;
}

.coin-image-credit {
  width: 100%;
  margin: 0;
  color: #666d72;
  font-size: 0.72rem;
}

.coin-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 12px;
}

.coin-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.84rem;
}

.coin-table caption {
  padding: 0.65rem 0.8rem;
  background: #f4efe5;
  color: #473a25;
  font-weight: 700;
  text-align: left;
  caption-side: top;
}

.coin-table th,
.coin-table td {
  padding: 0.58rem 0.7rem;
  border-top: 1px solid #e3e0da;
  vertical-align: top;
  text-align: left;
}

.coin-table thead th {
  border-top: 0;
  background: #faf8f4;
  color: #555c61;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.coin-table-visual {
  width: 8.4rem;
}

.coin-table-images {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0.35rem;
}

.coin-table-images img {
  display: block;
  width: 3.65rem;
  height: 3.65rem;
  padding: 0.14rem;
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}

.coin-catalogue-shell {
  width: min(100% - 2rem, 80rem);
}

.coin-catalogue-hero-art {
  display: grid;
  width: clamp(9rem, 20vw, 13rem);
  margin: 0;
  justify-items: center;
  gap: 0.55rem;
}

.coin-catalogue-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 14px rgba(65, 49, 24, 0.2));
  object-fit: contain;
}

.coin-catalogue-hero-art figcaption {
  color: #765f36;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.coin-catalogue-tools {
  display: grid;
  margin-top: 1rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid rgba(108, 86, 49, 0.18);
  border-radius: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  align-items: end;
  gap: 1rem 2rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(33, 37, 41, 0.16);
}

.coin-catalogue-tools h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.coin-catalogue-tools p:last-child {
  margin-bottom: 0;
}

.coin-catalogue-search label {
  display: block;
  margin-bottom: 0.35rem;
  color: #4b4131;
  font-size: 0.74rem;
  font-weight: 700;
}

.coin-catalogue-search > div:first-of-type {
  display: flex;
  gap: 0.45rem;
}

.coin-catalogue-search input {
  width: 100%;
  min-width: 0;
  padding: 0.66rem 0.75rem;
  border: 1px solid #c6bda9;
  border-radius: 10px;
  background: #fff;
  color: #24282b;
}

.coin-catalogue-search input:focus {
  border-color: #8e6f37;
  outline: 3px solid rgba(189, 143, 61, 0.22);
}

.coin-catalogue-search button {
  padding: 0.62rem 0.78rem;
  border: 1px solid #c6bda9;
  border-radius: 10px;
  background: #f1ece3;
  color: #443a29;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.coin-catalogue-search button:hover:not(:disabled),
.coin-catalogue-search button:focus-visible:not(:disabled) {
  border-color: #9e7a39;
  background: #dfcfb0;
}

.coin-catalogue-search button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.coin-catalogue-results {
  margin: 0.45rem 0 0;
  color: #5b6267;
  font-size: 0.74rem;
}

.coin-catalogue-actions {
  display: flex;
  margin-top: 0.55rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.coin-catalogue-error {
  color: #9e2a2a;
  font-weight: 700;
}

.coin-series-entry[hidden],
.coin-type-card[hidden] {
  display: none;
}

.coin-series-entry {
  grid-template-columns: minmax(8rem, 0.25fr) minmax(0, 1fr);
}

.coin-series-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coin-series-highlights li {
  min-height: 0;
  padding: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.42;
}

.coin-series-album {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(108, 86, 49, 0.2);
  border-radius: 14px;
  background: #fbfaf7;
}

.coin-series-album > summary {
  display: flex;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  background: #f1ece3;
}

.coin-series-album > summary::-webkit-details-marker {
  display: none;
}

.coin-series-album > summary::after {
  content: "＋";
  color: #765f36;
  font-size: 1.2rem;
  font-weight: 700;
}

.coin-series-album[open] > summary::after {
  content: "−";
}

.coin-series-album > summary span {
  display: grid;
  gap: 0.1rem;
}

.coin-series-album > summary small {
  color: #666d72;
  font-size: 0.7rem;
  font-weight: 400;
}

.coin-series-grid {
  display: grid;
  padding: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.8rem;
}

.coin-type-card {
  display: grid;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 13px;
  grid-template-rows: auto auto 1fr auto;
  background: #fff;
}

.coin-type-heading {
  margin-bottom: 0.65rem;
}

.coin-type-heading h3 {
  margin: 0.12rem 0 0;
  font-size: 1.15rem;
}

.coin-type-number {
  margin: 0;
  color: #765f36;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coin-face-pair {
  display: grid;
  padding: 0.7rem;
  border-radius: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0.7rem;
  background: #f4f1eb;
}

.coin-face {
  display: grid;
  min-width: 0;
  margin: 0;
  justify-items: center;
  gap: 0.35rem;
}

.coin-face a {
  display: grid;
  width: 100%;
  min-height: 8.5rem;
  place-items: center;
}

.coin-face img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 9rem;
  filter: drop-shadow(0 5px 7px rgba(35, 37, 38, 0.17));
  object-fit: contain;
}

.coin-face figcaption {
  color: #666d72;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: capitalize;
}

.coin-spec-grid {
  display: grid;
  margin: 0.75rem 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.coin-spec-grid div {
  min-width: 0;
  padding: 0.48rem;
  border-radius: 8px;
  background: #f6f3ed;
}

.coin-spec-grid dt {
  color: #746b5c;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coin-spec-grid dd {
  margin: 0.08rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
}

.coin-type-source {
  margin-top: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.banknote-history-page .coin-hero h1 {
  max-width: 18ch;
}

.banknote-hero-art {
  position: relative;
  display: grid;
  width: clamp(10.5rem, 23vw, 14.5rem);
  aspect-ratio: 1.9;
  padding: 0.8rem 1rem;
  overflow: hidden;
  border: 2px solid #a77920;
  border-radius: 12px;
  align-content: center;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.5) 18% 21%, transparent 21%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.35) 0 22%, transparent 23%),
    #e8b84d;
  box-shadow: 0 10px 24px rgba(76, 55, 20, 0.22);
  color: #44300e;
  text-align: right;
}

.banknote-hero-art::before {
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(68, 48, 14, 0.35);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.banknote-hero-art span,
.banknote-hero-art small {
  position: relative;
  z-index: 1;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banknote-hero-art strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.banknote-table {
  min-width: 55rem;
}

.banknote-table-visual {
  width: 19rem;
}

.banknote-table-visual img {
  display: block;
  width: 17.5rem;
  max-width: none;
  height: 5.6rem;
  padding: 0.24rem;
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.banknote-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(18rem, 1fr);
  align-items: end;
  gap: 1rem 2rem;
}

.banknote-section-heading h2,
.banknote-section-heading p {
  margin-bottom: 0;
}

.banknote-section-heading > p {
  color: #535a5f;
}

.banknote-series-summary {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.banknote-series-card {
  display: flex;
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid rgba(108, 86, 49, 0.14);
  border-radius: 13px;
  flex-direction: column;
  background: #f7f4ee;
  color: #303438;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.banknote-series-card:hover,
.banknote-series-card:focus-visible {
  border-color: rgba(0, 86, 179, 0.34);
  box-shadow: 0 8px 20px rgba(33, 37, 41, 0.12);
  color: #223a50;
  text-decoration: none;
  transform: translateY(-2px);
}

.banknote-series-card-heading {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
}

.banknote-series-card-heading strong {
  line-height: 1.25;
}

.banknote-series-number {
  display: grid;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  place-items: center;
  background: #e7dac1;
  color: #594622;
  font-size: 0.68rem;
  font-weight: 700;
}

.banknote-series-card-meta {
  margin: 0.55rem 0 0.35rem 2.55rem;
  color: #765f36;
  font-size: 0.7rem;
  font-weight: 700;
}

.banknote-series-card-summary {
  margin-left: 2.55rem;
  color: #555c61;
  font-size: 0.8rem;
  line-height: 1.45;
}

.banknote-series .era-marker small {
  display: block;
  margin-top: 0.55rem;
  color: #685a42;
  font-size: 0.7rem;
  font-weight: 700;
}

.banknote-series {
  grid-template-columns: 1fr;
}

.banknote-series .era-marker {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}

.banknote-series .era-marker strong {
  margin: 0 0 0 auto;
}

.banknote-series .era-marker small {
  margin: 0;
}

.banknote-series-denominations {
  color: #685a42;
  font-size: 0.82rem;
  font-weight: 700;
}

.banknote-types {
  margin-top: 1rem;
  border: 1px solid rgba(108, 86, 49, 0.18);
  border-radius: 13px;
  overflow: clip;
  background: #fff;
}

.banknote-types > summary {
  position: relative;
  display: flex;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  align-items: center;
  gap: 0.8rem;
  background: #f2ece1;
  color: #443a29;
  cursor: pointer;
  list-style: none;
}

.banknote-types > summary::-webkit-details-marker {
  display: none;
}

.banknote-types > summary::after {
  margin-left: auto;
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
}

.banknote-types[open] > summary::after {
  content: "−";
}

.banknote-types > summary span {
  font-weight: 700;
}

.banknote-types > summary small {
  color: #716650;
  font-size: 0.72rem;
}

.banknote-types > .coin-table-wrap {
  margin-top: 0;
  border: 0;
  border-radius: 0;
}

.banknote-table-figure {
  margin: 0;
}

.banknote-image-note {
  width: 17.5rem;
  margin-top: 0.35rem;
  color: #756a58;
  font-size: 0.65rem;
  line-height: 1.35;
}

.banknote-denomination {
  color: #473a25;
  font-size: 1rem;
  font-weight: 700;
}

.banknote-type-code {
  display: block;
  margin-top: 0.2rem;
  color: #765f36;
  font-weight: 700;
}

.banknote-variants {
  max-width: 15rem;
  margin-top: 0.45rem;
  font-size: 0.7rem;
}

.banknote-variants summary {
  color: #0056b3;
  cursor: pointer;
  font-weight: 700;
}

.banknote-variants > span {
  display: block;
  margin-top: 0.3rem;
  color: #666d72;
  line-height: 1.4;
}

.series-list {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
}

.series-list li {
  padding: 0.8rem;
  border-radius: 12px;
  background: #f6f3ed;
}

.series-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.series-list span {
  color: #535a5f;
  font-size: 0.82rem;
}

.coin-note {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 4px solid #b38a43;
  border-radius: 0 10px 10px 0;
  background: #f8f4ec;
}

.coin-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.coin-reference-card {
  padding: 1rem;
  border-radius: 14px;
  background: #f7f4ee;
}

.coin-reference-card h3 {
  font-size: 1.05rem;
}

.coin-reference-card p:last-child,
.coin-sources li:last-child {
  margin-bottom: 0;
}

.coin-sources ol {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.coin-sources li {
  margin-bottom: 0.55rem;
}

.coin-sources a {
  font-weight: 700;
}

.coin-scope {
  margin: 0.9rem 0 0;
  color: #666d72;
  font-size: 0.78rem;
}

.stamp-history-page .coin-hero h1 {
  max-width: 18ch;
}

.stamp-hero-art {
  width: clamp(9rem, 21vw, 13rem);
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(76, 58, 28, 0.24);
  border-radius: 8px;
  background: #fdfbf7;
  box-shadow:
    0 0 0 5px #fff,
    0 10px 24px rgba(76, 55, 20, 0.2);
  text-align: center;
  transform: rotate(1.4deg);
}

.stamp-hero-art img {
  display: block;
  width: 100%;
  height: clamp(8.5rem, 20vw, 12.5rem);
  object-fit: contain;
}

.stamp-hero-art figcaption {
  margin-top: 0.45rem;
  color: #685631;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stamp-route-grid {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stamp-route-card {
  display: grid;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(108, 86, 49, 0.16);
  border-radius: 16px;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  background: #f7f4ee;
  color: #2c3135;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.stamp-route-card:hover,
.stamp-route-card:focus-visible {
  box-shadow: 0 9px 22px rgba(33, 37, 41, 0.14);
  color: #172d44;
  text-decoration: none;
  transform: translateY(-2px);
}

.stamp-route-card > img {
  display: block;
  width: 7.5rem;
  height: 8.8rem;
  padding: 0.35rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.stamp-route-card > span {
  min-width: 0;
}

.stamp-route-card small,
.stamp-route-card strong,
.stamp-route-card span span {
  display: block;
}

.stamp-route-card small {
  margin-bottom: 0.3rem;
  color: #765f36;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stamp-route-card strong {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
  line-height: 1.15;
}

.stamp-route-card span span {
  color: #535a5f;
  font-size: 0.86rem;
  line-height: 1.45;
}

.stamp-series-content {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
}

.stamp-series-figure {
  margin: 0;
  padding: 0.65rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 12px;
  background: #faf9f6;
  text-align: center;
}

.stamp-series-figure img {
  display: block;
  width: 100%;
  height: 13rem;
  background: #fff;
  object-fit: contain;
}

.stamp-series-figure figcaption {
  margin-top: 0.5rem;
  color: #666d72;
  font-size: 0.68rem;
  line-height: 1.35;
}

.stamp-series-figure a,
.stamp-gallery-card a {
  font-weight: 700;
}

.stamp-series-label {
  margin: 0 0 0.2rem;
  color: #765f36;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.definitive-catalogue-tools {
  display: grid;
  margin-top: 1rem;
  padding: clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid rgba(108, 86, 49, 0.18);
  border-radius: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
  align-items: center;
  gap: 1rem 2rem;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 34px rgba(33, 37, 41, 0.16);
}

.definitive-catalogue-tools h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.definitive-catalogue-tools p:last-child {
  margin-bottom: 0;
}

.definitive-catalogue-search {
  padding: 0.85rem;
  border-radius: 12px;
  background: #f5f1e9;
}

.definitive-catalogue-search label {
  display: block;
  margin-bottom: 0.35rem;
  color: #4a3c25;
  font-size: 0.76rem;
  font-weight: 700;
}

.definitive-catalogue-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.definitive-catalogue-search input,
.definitive-catalogue-search button {
  min-height: 2.7rem;
  border: 1px solid rgba(74, 60, 37, 0.3);
  border-radius: 9px;
}

.definitive-catalogue-search input {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  background: #fff;
  color: #24282b;
}

.definitive-catalogue-search button {
  padding: 0.55rem 0.8rem;
  background: #5e4b2a;
  color: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.definitive-catalogue-search button:disabled {
  opacity: 0.45;
  cursor: default;
}

.definitive-catalogue-error {
  color: #8b271f;
  font-weight: 700;
}

.definitive-series-album {
  margin-top: 0.25rem;
  border: 1px solid rgba(108, 86, 49, 0.2);
  border-radius: 14px;
  grid-column: 1 / -1;
  overflow: clip;
  background: #fff;
}

.definitive-series-album > summary {
  position: relative;
  display: flex;
  min-height: 3.8rem;
  padding: 0.85rem 1rem;
  align-items: center;
  gap: 0.75rem;
  background: #eee5d5;
  color: #453a26;
  cursor: pointer;
  list-style: none;
}

.definitive-series-album > summary::-webkit-details-marker {
  display: none;
}

.definitive-series-album > summary::after {
  margin-left: auto;
  content: "+";
  font-size: 1.35rem;
  font-weight: 300;
}

.definitive-series-album[open] > summary::after {
  content: "−";
}

.definitive-series-album > summary span,
.definitive-series-album > summary small {
  display: block;
}

.definitive-series-album > summary strong {
  font-size: 0.92rem;
}

.definitive-series-album > summary small {
  margin-top: 0.12rem;
  color: #685a42;
  font-size: 0.7rem;
}

.definitive-series-album .stamp-catalogue-grid {
  margin: 0;
}

.stamp-series-entry[hidden] {
  display: none;
}

.stamp-design-list {
  display: grid;
  margin: 1rem 0 0;
  padding: 0;
  gap: 0.5rem;
  list-style: none;
}

.stamp-design-list li {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #f6f3ed;
  font-size: 0.84rem;
}

.commemorative-era .era-content > p {
  max-width: 52rem;
}

.stamp-gallery {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.8rem;
}

.stamp-gallery-single {
  grid-template-columns: minmax(0, 22rem);
}

.stamp-gallery-card {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 12px;
  flex-direction: column;
  background: #faf9f6;
}

.stamp-gallery-card-wide {
  grid-column: span 2;
}

.stamp-gallery-card img {
  display: block;
  width: 100%;
  height: 12rem;
  background: #fff;
  object-fit: contain;
}

.stamp-gallery-card figcaption {
  display: flex;
  margin-top: 0.55rem;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  color: #535a5f;
  font-size: 0.72rem;
  line-height: 1.35;
}

.stamp-gallery-card figcaption strong {
  color: #303438;
  font-size: 0.84rem;
}

.stamp-gallery-card figcaption span {
  margin: 0.1rem 0 0.35rem;
}

.stamp-gallery-card figcaption a {
  margin-top: auto;
}

.stamp-current-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid #b38a43;
  border-radius: 0 12px 12px 0;
  background: #f7f2e9;
}

.stamp-current-note strong {
  color: #4a3c25;
}

.stamp-current-note p {
  margin: 0.25rem 0 0;
  color: #535a5f;
  font-size: 0.86rem;
}

.stamp-source-grid {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stamp-source-grid a {
  display: block;
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid rgba(108, 86, 49, 0.14);
  border-radius: 12px;
  background: #f7f4ee;
  color: #2f3438;
  text-decoration: none;
}

.stamp-source-grid a:hover,
.stamp-source-grid a:focus-visible {
  border-color: rgba(0, 86, 179, 0.35);
  background: #f3f7fb;
  color: #0056b3;
}

.stamp-source-grid strong,
.stamp-source-grid span {
  display: block;
}

.stamp-source-grid span {
  margin-top: 0.2rem;
  color: #656c71;
  font-size: 0.76rem;
  line-height: 1.35;
}

.stamp-period-grid {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.stamp-period-card {
  display: flex;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(108, 86, 49, 0.16);
  border-radius: 14px;
  flex-direction: column;
  background: #f8f5ef;
  color: #353a3e;
  text-decoration: none;
}

.stamp-period-card:hover,
.stamp-period-card:focus-visible {
  border-color: rgba(0, 86, 179, 0.38);
  background: #f2f7fb;
  color: #26343f;
  text-decoration: none;
}

.stamp-period-years {
  color: #765f36;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stamp-period-card strong {
  margin: 0.25rem 0;
  font-size: 1.02rem;
}

.stamp-period-card > span:not(.stamp-period-years) {
  flex: 1;
  color: #555d62;
  font-size: 0.82rem;
  line-height: 1.45;
}

.stamp-period-card small {
  margin-top: 0.65rem;
  color: #6c5631;
  font-weight: 700;
}

.stamp-period-nav a[aria-current="page"] {
  background: #5e4b2a;
  color: #fff;
}

.stamp-catalogue-shell {
  width: min(100% - 2rem, 80rem);
}

.stamp-catalogue-hero h1 {
  max-width: none;
}

.stamp-catalogue-totals {
  display: grid;
  width: min(100%, 20rem);
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.stamp-catalogue-totals div {
  padding: 0.85rem;
  border-radius: 12px;
  background: #f4eee2;
}

.stamp-catalogue-totals div:first-child {
  grid-column: 1 / -1;
}

.stamp-catalogue-totals dt {
  color: #765f36;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stamp-catalogue-totals dd {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.stamp-catalogue-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.55fr);
  gap: 1rem 2rem;
}

.stamp-catalogue-intro h2 {
  margin-bottom: 0.4rem;
}

.stamp-catalogue-coverage {
  margin-bottom: 0;
  color: #5e4b2a;
  font-size: 0.84rem;
}

.stamp-catalogue-search {
  align-self: center;
  padding: 0.85rem;
  border-radius: 12px;
  background: #f5f1e9;
}

.stamp-catalogue-search label {
  display: block;
  margin-bottom: 0.35rem;
  color: #4a3c25;
  font-size: 0.76rem;
  font-weight: 700;
}

.stamp-catalogue-search input {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(74, 60, 37, 0.3);
  border-radius: 9px;
  background: #fff;
  color: #24282b;
}

.stamp-catalogue-results {
  margin: 0.4rem 0 0;
  color: #62696e;
  font-size: 0.75rem;
}

.stamp-catalogue-year {
  margin-top: 1rem;
  border: 1px solid rgba(108, 86, 49, 0.18);
  border-radius: 18px;
  overflow: clip;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 9px 26px rgba(33, 37, 41, 0.13);
  scroll-margin-top: 1rem;
}

.stamp-catalogue-year > summary {
  display: flex;
  min-height: 4.2rem;
  padding: 0.95rem 1.2rem;
  align-items: center;
  gap: 1rem;
  background: #eee5d5;
  color: #453a26;
  cursor: pointer;
  list-style: none;
}

.stamp-catalogue-year > summary::-webkit-details-marker {
  display: none;
}

.stamp-catalogue-year > summary::after {
  margin-left: auto;
  content: "+";
  font-size: 1.35rem;
  font-weight: 300;
}

.stamp-catalogue-year[open] > summary::after {
  content: "−";
}

.stamp-catalogue-year > summary span {
  font-size: 1.45rem;
  font-weight: 700;
}

.stamp-catalogue-year > summary small {
  color: #685a42;
  font-size: 0.74rem;
}

.stamp-catalogue-grid {
  display: grid;
  padding: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.75rem;
}

.stamp-catalogue-card {
  display: grid;
  min-width: 0;
  min-height: 13rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 13px;
  grid-template-columns: 9rem minmax(0, 1fr);
  overflow: hidden;
  background: #fbfaf7;
}

.stamp-catalogue-card[hidden],
.stamp-catalogue-year[hidden] {
  display: none;
}

.stamp-catalogue-image {
  display: grid;
  min-height: 13rem;
  padding: 0.65rem;
  place-items: center;
  background: #f1eee8;
}

.stamp-catalogue-image-link {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.stamp-catalogue-image img {
  display: block;
  max-width: 100%;
  max-height: 11.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(35, 37, 38, 0.16));
}

.stamp-catalogue-image-missing {
  display: grid;
  width: 100%;
  min-height: 8rem;
  padding: 0.5rem;
  place-items: center;
  align-content: center;
  color: #7a746b;
  text-align: center;
}

.stamp-catalogue-image-missing span {
  font-size: 2rem;
  line-height: 1;
}

.stamp-catalogue-image-missing small {
  max-width: 8rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
}

.stamp-catalogue-copy {
  display: flex;
  min-width: 0;
  padding: 0.85rem;
  flex-direction: column;
}

.stamp-catalogue-number,
.stamp-catalogue-set {
  margin: 0;
  color: #765f36;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stamp-catalogue-copy h3 {
  margin: 0.18rem 0 0.4rem;
  font-size: 1rem;
  line-height: 1.25;
}

.stamp-catalogue-set {
  margin: -0.15rem 0 0.45rem;
  color: #6a7074;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.stamp-catalogue-copy dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.stamp-catalogue-copy dl div {
  min-width: 0;
  padding: 0.45rem;
  border-radius: 8px;
  background: #f2eee7;
}

.stamp-catalogue-copy dt {
  color: #746b5c;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stamp-catalogue-copy dd {
  margin: 0.08rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.stamp-catalogue-source {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.stamp-catalogue-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border-radius: 10px;
  background: #f7f4ee;
  color: #5b6267;
}

@media (max-width: 767.98px) {
  .coin-hero {
    grid-template-columns: 1fr;
  }

  .coin-hero-art {
    grid-row: 1;
    width: 7.5rem;
  }

  .coin-catalogue-hero-art {
    grid-row: 1;
    width: 8.5rem;
    align-self: start;
  }

  .coin-hero-copy {
    grid-row: 2;
  }

  .coin-catalogue-tools,
  .coin-series-grid {
    grid-template-columns: 1fr;
  }

  .banknote-hero-art {
    grid-row: 1;
    width: 11rem;
  }

  .coin-facts,
  .coin-overview-grid,
  .coin-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .banknote-section-heading,
  .banknote-series-summary {
    grid-template-columns: 1fr;
  }

  .history-era {
    grid-template-columns: 1fr;
  }

  .era-marker {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .era-marker strong {
    margin: 0;
  }

  .banknote-series .era-marker small {
    margin: 0 0 0 auto;
  }

  .series-list {
    grid-template-columns: 1fr;
  }

  .coin-series-entry {
    grid-template-columns: 1fr;
  }

  .coin-series-album {
    grid-column: auto;
  }

  .coin-series-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stamp-hero-art {
    grid-row: 1;
    width: 8.5rem;
  }

  .stamp-route-grid,
  .stamp-source-grid {
    grid-template-columns: 1fr;
  }

  .stamp-period-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stamp-catalogue-hero,
  .stamp-catalogue-intro,
  .definitive-catalogue-tools,
  .stamp-catalogue-grid {
    grid-template-columns: 1fr;
  }

  .stamp-catalogue-totals {
    width: 100%;
  }

  .stamp-series-content {
    grid-template-columns: 1fr;
  }

  .stamp-series-figure {
    width: min(100%, 17rem);
  }

  .stamp-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stamp-gallery-single {
    grid-template-columns: minmax(0, 22rem);
  }

  .stamp-gallery-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 479.98px) {
  .coin-facts,
  .coin-overview-grid,
  .coin-reference-grid {
    grid-template-columns: 1fr;
  }

  .coin-catalogue-search > div:first-of-type,
  .coin-series-highlights {
    grid-template-columns: 1fr;
  }

  .coin-catalogue-search > div:first-of-type {
    display: grid;
  }

  .coin-catalogue-actions button {
    flex: 1 1 8rem;
  }

  .coin-series-grid {
    padding: 0.65rem;
  }

  .coin-type-card {
    padding: 0.7rem;
  }

  .coin-face a {
    min-height: 6.5rem;
  }

  .coin-face img {
    max-height: 7rem;
  }

  .coin-spec-grid {
    grid-template-columns: 1fr;
  }

  .banknote-series-card-meta,
  .banknote-series-card-summary {
    margin-left: 0;
  }

  .banknote-types > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .banknote-types > summary::after {
    position: absolute;
    align-self: flex-end;
  }

  .coin-equation {
    grid-template-columns: 1fr;
  }

  .coin-pair img {
    width: 7.2rem;
    height: 7.2rem;
  }

  .stamp-route-card {
    grid-template-columns: 5.4rem minmax(0, 1fr);
  }

  .stamp-route-card > img {
    width: 5.4rem;
    height: 7rem;
  }

  .stamp-gallery,
  .stamp-gallery-single {
    grid-template-columns: 1fr;
  }

  .stamp-gallery-card img {
    height: 13.5rem;
  }

  .stamp-period-grid {
    grid-template-columns: 1fr;
  }

  .stamp-catalogue-card {
    grid-template-columns: 7.2rem minmax(0, 1fr);
  }

  .stamp-catalogue-image {
    padding: 0.45rem;
  }

  .stamp-catalogue-copy dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .era-nav {
    scroll-behavior: auto;
  }

  .stamp-route-card {
    transition: none;
  }
}
