:root {
  --bg: #fff9f6;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --ink: #27222b;
  --muted: #766e7e;
  --line: rgba(196, 178, 155, 0.42);
  --accent: #b88a2f;
  --accent-strong: #7f5a17;
  --rose: #f3aeb8;
  --mint: #a8d9cc;
  --sky: #adcdea;
  --lilac: #c9b9e8;
  --peach: #f6c8aa;
  --gold: #d7ad58;
  --tag: #fff5dc;
  --shadow: 0 18px 50px rgba(91, 61, 91, 0.12);
  --gold-foil: linear-gradient(135deg, #fff6d8 0%, #f2d9a2 42%, #f6cdbb 100%);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(255, 238, 243, 0.86), rgba(236, 250, 244, 0.8) 36%, rgba(240, 244, 255, 0.92) 70%, rgba(255, 248, 226, 0.9)),
    var(--bg);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", "Source Han Serif JP", "MS PMincho", serif;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

a {
  color: #7c5714;
  text-decoration-color: rgba(184, 138, 47, 0.42);
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

.site-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(255, 249, 240, 0.94), rgba(255, 231, 238, 0.82) 34%, rgba(226, 248, 242, 0.88) 66%, rgba(239, 236, 255, 0.9)),
    #fff9f6;
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(255, 255, 255, 0.58) 18% 19%, transparent 19% 42%, rgba(215, 173, 88, 0.22) 42% 43%, transparent 43% 100%),
    repeating-linear-gradient(135deg, rgba(215, 173, 88, 0.12) 0 1px, transparent 1px 18px);
  opacity: 0.55;
}

.header-inner {
  position: relative;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--accent-strong);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-hidden="true"] {
  color: rgba(118, 110, 126, 0.58);
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  letter-spacing: 0.05em;
  color: #251f2b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.brand-url {
  display: inline-block;
  margin: 0 0 0 12px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 10px;
}

.stats div {
  min-height: 82px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(145, 105, 52, 0.08);
  backdrop-filter: blur(12px);
}

.stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: #8b621b;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.app-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 26px auto 48px;
}

.search-panel {
  position: relative;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-panel::before,
.detail-section::before,
.resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gold-foil);
  opacity: 0.32;
  pointer-events: none;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-box {
  position: relative;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

input {
  padding: 0 42px 0 14px;
  font-size: 17px;
}

select {
  padding: 0 34px 0 12px;
}

button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(205, 158, 78, 0.42);
  border-radius: 8px;
  background: var(--gold-foil);
  color: #684a1d;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(184, 138, 47, 0.12);
}

button:hover {
  filter: saturate(1.03) brightness(1.01);
}

.icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clear-keyword {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 22px;
  line-height: 1;
}

.clear-keyword:hover {
  background: rgba(118, 110, 126, 0.08);
  color: var(--ink);
  filter: none;
}

.search-action {
  width: 44px;
  padding: 0;
  border-color: #211d24;
  background: #211d24;
  color: #fff;
  box-shadow: 0 8px 18px rgba(33, 29, 36, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-action:hover {
  background: #000;
  border-color: #000;
  color: #fff;
  filter: none;
}

#clear-filters {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-color: rgba(118, 110, 126, 0.28);
  background: rgba(255, 255, 255, 0.54);
  color: var(--muted);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#clear-filters:hover {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  filter: none;
}

.filters .clear-filters {
  align-self: end;
  justify-self: end;
}

#refresh-recommendations[hidden] {
  display: none;
}

#back-to-search[hidden] {
  display: none;
}

#refresh-recommendations {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(
    105deg,
    #f5c5cd 0%,
    #efd7ac 18%,
    #cfe0b2 36%,
    #aeddd4 54%,
    #b7d2ee 72%,
    #d7c0e3 90%,
    #f5c5cd 100%
  );
  background-size: 260% 260%;
  color: #2f2430;
  box-shadow: 0 10px 24px rgba(121, 92, 131, 0.16);
  font-weight: 700;
  animation: refresh-rainbow-flow 16s linear infinite;
}

#refresh-recommendations .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

#refresh-recommendations:hover {
  color: #211d24;
  filter: none;
}

@keyframes refresh-rainbow-flow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 260% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #refresh-recommendations {
    animation: none;
  }
}

.advanced-toggle {
  display: none;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 44px;
  gap: 12px;
  margin-top: 14px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
}

.result-head h2 {
  margin: 0;
  font-size: 22px;
}

.result-head select {
  max-width: 180px;
}

.results {
  column-count: 3;
  column-gap: 16px;
}

.resource-card {
  position: relative;
  min-height: 320px;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
  page-break-inside: avoid;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 246, 0.86)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(115, 92, 128, 0.08);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-top > div {
  min-width: 0;
}

.type-pill {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 245, 209, 0.95), rgba(255, 231, 238, 0.92));
  color: #795516;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(215, 173, 88, 0.36);
  text-decoration: none;
}

.title-prefix {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin: 0 0 8px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-type-pill {
  display: none;
}

.resource-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.resource-card h3 a {
  color: inherit;
  text-decoration: none;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.meta a {
  color: inherit;
  text-decoration-color: rgba(184, 138, 47, 0.34);
}

.description {
  margin: 0;
  color: #443d49;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 245, 220, 0.9), rgba(229, 246, 241, 0.9));
  color: #5b4b66;
  font-size: 12px;
  border: 1px solid rgba(196, 178, 155, 0.3);
}

.tag-list a {
  color: inherit;
  text-decoration: none;
}

.tag-list li:nth-child(3n + 1) {
  background: linear-gradient(135deg, rgba(255, 238, 242, 0.94), rgba(255, 247, 224, 0.9));
}

.tag-list li:nth-child(3n + 2) {
  background: linear-gradient(135deg, rgba(229, 246, 241, 0.94), rgba(239, 236, 255, 0.9));
}

.tag-list li:nth-child(3n) {
  background: linear-gradient(135deg, rgba(233, 244, 255, 0.94), rgba(255, 241, 229, 0.9));
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.card-actions a {
  flex: 1;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.card-actions a.icon-action {
  flex: 0 0 44px;
  min-height: 40px;
  padding: 0;
}

.card-actions a.icon-action .icon {
  width: 19px;
  height: 19px;
}

.card-actions a.primary {
  border-color: rgba(205, 158, 78, 0.42);
  background: var(--gold-foil);
  color: #684a1d;
}

.source {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 42px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-notice,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  color: var(--muted);
  font-size: 13px;
}

.site-notice {
  margin: 0 auto 16px;
}

.site-footer {
  margin: 0 auto 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(196, 178, 155, 0.62);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.detail-header-inner {
  align-items: center;
}

.detail-header h1 {
  max-width: 820px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 420px;
}

.button-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.button-link .icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-link.primary {
  border-color: rgba(205, 158, 78, 0.42);
  background: var(--gold-foil);
  color: #684a1d;
}

.detail-shell {
  width: min(980px, calc(100% - 32px));
  margin: 26px auto 48px;
}

.tag-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 26px auto 48px;
}

.detail-main {
  display: grid;
  gap: 16px;
}

.detail-section {
  position: relative;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.detail-section p {
  margin: 0;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.detail-row:first-child {
  border-top: 0;
}

.detail-row dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.detail-tags {
  margin-top: 4px;
}

.commerce-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.commerce-link {
  --commerce-bg: rgba(255, 255, 255, 0.7);
  --commerce-border: rgba(196, 178, 155, 0.58);
  --commerce-ink: var(--ink);
  --commerce-hover-bg: rgba(255, 246, 232, 0.92);
  --commerce-hover-border: rgba(205, 158, 78, 0.62);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--commerce-border);
  border-radius: 8px;
  background: var(--commerce-bg);
  color: var(--commerce-ink);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(91, 61, 91, 0.04);
}

.commerce-link:hover {
  border-color: var(--commerce-hover-border);
  background: var(--commerce-hover-bg);
}

.commerce-link--amazon {
  --commerce-bg: rgba(255, 248, 232, 0.86);
  --commerce-border: rgba(255, 153, 0, 0.3);
  --commerce-ink: #6d4b12;
  --commerce-hover-bg: rgba(255, 241, 207, 0.94);
  --commerce-hover-border: rgba(255, 153, 0, 0.46);
}

.commerce-link--rakuten {
  --commerce-bg: rgba(255, 239, 241, 0.84);
  --commerce-border: rgba(191, 0, 0, 0.24);
  --commerce-ink: #7a2c33;
  --commerce-hover-bg: rgba(255, 225, 229, 0.92);
  --commerce-hover-border: rgba(191, 0, 0, 0.38);
}

.commerce-link--yahoo {
  --commerce-bg: rgba(255, 242, 244, 0.84);
  --commerce-border: rgba(255, 0, 51, 0.22);
  --commerce-ink: #82313d;
  --commerce-hover-bg: rgba(255, 229, 233, 0.92);
  --commerce-hover-border: rgba(255, 0, 51, 0.36);
}

.commerce-link--mercari {
  --commerce-bg: rgba(247, 241, 255, 0.84);
  --commerce-border: rgba(112, 84, 190, 0.24);
  --commerce-ink: #554170;
  --commerce-hover-bg: rgba(238, 229, 255, 0.92);
  --commerce-hover-border: rgba(112, 84, 190, 0.38);
}

.muted-text {
  color: var(--muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.related-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-decoration: none;
}

.related-card strong {
  line-height: 1.35;
}

.related-card span {
  color: var(--muted);
  font-size: 13px;
}

.tag-nav {
  padding: 18px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.tag-nav h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.tag-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-nav a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid rgba(196, 178, 155, 0.36);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 241, 229, 0.92), rgba(231, 247, 242, 0.9));
  color: #5b4b66;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.tag-results {
  column-count: 3;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(184, 138, 47, 0.42);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 220, 0.92)),
    var(--surface-strong);
  color: var(--accent-strong);
  box-shadow: 0 12px 34px rgba(91, 61, 91, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background:
    linear-gradient(135deg, rgba(255, 246, 216, 0.98), rgba(231, 247, 242, 0.94)),
    var(--surface-strong);
}

.back-to-top .icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 920px) {
  .header-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .results {
    column-count: 2;
  }

  .detail-actions {
    justify-content: flex-start;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  body {
    line-height: 1.5;
  }

  .site-header {
    overflow: visible;
  }

  .header-inner {
    width: min(100% - 24px, 1160px);
    padding: 18px 0 14px;
    gap: 14px;
  }

  .app-shell,
  .detail-shell,
  .tag-shell,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .app-shell {
    margin-top: 12px;
    margin-bottom: 34px;
  }

  .stats,
  .filters {
    grid-template-columns: 1fr;
  }

  .eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .breadcrumb {
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
  }

  h1 {
    font-size: 34px;
  }

  .brand-url {
    margin-left: 8px;
    font-size: 12px;
  }

  .lead {
    margin-top: 8px;
    font-size: 14px;
  }

  .stats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .stats::-webkit-scrollbar {
    display: none;
  }

  .stats div {
    flex: 1 0 92px;
    min-height: 58px;
    padding: 10px;
  }

  .stats strong {
    font-size: 22px;
  }

  .stats span {
    margin-top: 4px;
    font-size: 12px;
  }

  .search-panel {
    padding: 12px;
    box-shadow: 0 10px 28px rgba(91, 61, 91, 0.1);
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .search-box span {
    display: none;
  }

  input,
  select,
  button {
    min-height: 40px;
  }

  input {
    padding: 0 38px 0 12px;
    font-size: 16px;
  }

  button {
    padding: 0 12px;
  }

  .search-action {
    width: 40px;
    min-height: 40px;
  }

  .advanced-toggle {
    width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(118, 110, 126, 0.24);
    background: rgba(255, 255, 255, 0.56);
    color: var(--muted);
    box-shadow: none;
    padding: 0;
  }

  .advanced-toggle:hover,
  .search-panel.filters-expanded .advanced-toggle {
    border-color: rgba(205, 158, 78, 0.42);
    background: rgba(255, 246, 232, 0.82);
    color: var(--accent-strong);
    filter: none;
  }

  .filters {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 0;
  }

  .search-panel.filters-expanded .filters {
    display: grid;
  }

  .filters label {
    min-width: 0;
  }

  .filters label:nth-of-type(5) {
    grid-column: 1 / 2;
  }

  .filters .clear-filters {
    width: 40px;
    min-height: 40px;
    justify-self: end;
    margin-top: 2px;
  }

  .filters label span {
    margin-bottom: 4px;
    font-size: 11px;
  }

  .filters select {
    min-height: 38px;
    padding-left: 10px;
    padding-right: 28px;
    font-size: 14px;
  }

  .results,
  .tag-results {
    column-count: 1;
  }

  .result-head {
    align-items: center;
    flex-direction: row;
    margin: 14px 0 10px;
  }

  .result-head h2 {
    font-size: 19px;
  }

  #refresh-recommendations {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .result-head select {
    max-width: none;
  }

  .resource-card {
    min-height: 0;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
  }

  .resource-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 18px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .card-top {
    display: block;
  }

  .card-top > div {
    display: block;
  }

  .card-top h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .card-top .meta {
    min-width: 0;
    margin-top: 4px;
  }

  .description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .tag-list {
    max-height: 58px;
    overflow: hidden;
  }

  .card-actions,
  .detail-actions,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .button-link {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .commerce-links {
    grid-template-columns: 1fr;
  }
}
