/* Search-results A: all rules stay inside this one category module. */
#tg-results.tg-discovery {
  --sd-ink: #123750;
  --sd-navy: #153b61;
  --sd-muted: #56748c;
  --sd-line: #cce3f2;
  --sd-surface: #fff;
  --sd-pale: #edf7fd;
  --sd-blue: #165c99;
  --sd-button-ink: #fff;
  --sd-shadow: #2762890b;
  position: relative;
  isolation: isolate;
  padding: 32px 30px 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 32px auto 10px;
  border: 1px solid var(--sd-line);
  border-radius: 16px;
  background: radial-gradient(ellipse at 7% 0%, #def1fe 0%, transparent 45%), linear-gradient(145deg, #f9fdff 5%, var(--sd-surface) 48%, #f7fcff);
  box-shadow: 0 10px 32px var(--sd-shadow);
  color: var(--sd-ink);
  scroll-margin-top: 24px;
  overflow: hidden;
}
#tg-results.tg-discovery *, #tg-results.tg-discovery *::before, #tg-results.tg-discovery *::after { box-sizing: border-box; }
#tg-results.tg-discovery[hidden], #tg-results.tg-discovery [hidden] { display: none !important; }
#tg-results.tg-discovery :is(button, select) { font: inherit; }
#tg-results.tg-discovery :is(button, select, a) { -webkit-tap-highlight-color: transparent; }
#tg-results.tg-discovery :is(button, select) { cursor: pointer; }
#tg-results.tg-discovery :is(button, select, a):focus-visible { outline: 3px solid #2984c0; outline-offset: 4px; }
#tg-results.tg-discovery button:disabled { cursor: default; opacity: .48; }
#tg-results.tg-discovery .tg-discovery-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#tg-results.tg-discovery .tg-discovery-header { position: relative; display: flex; align-items: center; gap: 24px; padding-right: 70px; min-height: 100px; margin-bottom: 24px; }
#tg-results.tg-discovery .tg-discovery-medallion { display: grid; place-items: center; flex: 0 0 104px; width: 104px; height: 104px; border: 1px solid #c4e2f6; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e5f5ff, #d2eafb); color: #316888; }
#tg-results.tg-discovery #tg-discovery-emblem { display: grid; place-items: center; width: 100%; height: 100%; font-family: Georgia, serif; font-size: 29px; letter-spacing: .03em; }
#tg-results.tg-discovery #tg-discovery-emblem img { display: block; width: 92px; height: 92px; object-fit: contain; }
#tg-results.tg-discovery .tg-discovery-heading { min-width: 0; }
#tg-results.tg-discovery .tg-discovery-eyebrow { margin: 0 0 8px; color: var(--sd-navy); font-family: Georgia, serif; font-size: 11px; font-weight: 600; letter-spacing: .17em; }
#tg-results.tg-discovery .tg-discovery-title { margin: 0; padding: 0; border: 0; background: none; color: var(--sd-navy); font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(24px, 2.5vw, 32px); font-weight: 600; line-height: 1.65; letter-spacing: .025em; overflow-wrap: anywhere; }
#tg-results.tg-discovery .tg-discovery-title:focus { outline: none; }
#tg-results.tg-discovery .tg-discovery-title::before, #tg-results.tg-discovery .tg-discovery-title::after { content: none; }
#tg-results.tg-discovery .tg-discovery-close { position: absolute; top: -8px; right: -8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 74px; min-height: 44px; margin: 0; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--sd-navy); font-size: 12px; letter-spacing: .06em; box-shadow: none; }
#tg-results.tg-discovery .tg-discovery-close span { font-size: 21px; font-weight: 400; line-height: 1; }
#tg-results.tg-discovery .tg-discovery-close:hover { background: var(--sd-pale); }
#tg-results.tg-discovery .tg-discovery-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 20px; }
#tg-results.tg-discovery .tg-discovery-count { display: flex; align-items: baseline; gap: 6px; margin: 0; color: var(--sd-navy); font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 17px; font-weight: 500; line-height: 1.75; }
#tg-results.tg-discovery .tg-discovery-count strong { color: inherit; font-family: Georgia, serif; font-size: 33px; font-weight: 500; line-height: 1; }
#tg-results.tg-discovery .tg-discovery-showing { margin: 0; color: var(--sd-muted); font-size: 12px; line-height: 1.6; }
#tg-results.tg-discovery .tg-discovery-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
#tg-results.tg-discovery .tg-discovery-filters { display: flex; flex: 1; flex-direction: column; gap: 12px; min-width: 0; }
#tg-results.tg-discovery .tg-discovery-filter-group { min-width: 0; padding: 0; margin: 0; border: 0; }
#tg-results.tg-discovery .tg-discovery-filter-group legend { display: block; float: none; width: auto; margin: 0 0 7px; padding: 0; color: var(--sd-muted); font-size: 11px; font-weight: 600; letter-spacing: .045em; }
#tg-results.tg-discovery .tg-discovery-filter-group legend span { margin-left: 12px; font-size: 10px; font-weight: 400; letter-spacing: 0; }
#tg-results.tg-discovery .tg-discovery-chips { display: flex; flex-wrap: wrap; gap: 7px; }
#tg-results.tg-discovery .tg-discovery-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; margin: 0; padding: 7px 15px; border: 1px solid #b8d7ee; border-radius: 22px; background: var(--sd-surface); color: var(--sd-navy); box-shadow: none; font-size: 12px; font-weight: 500; line-height: 1.45; white-space: nowrap; transition: background .15s, border-color .15s; }
#tg-results.tg-discovery .tg-discovery-chip-count { color: var(--sd-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
#tg-results.tg-discovery .tg-discovery-chip:hover:not(:disabled) { background: var(--sd-pale); border-color: #70a8cc; }
#tg-results.tg-discovery .tg-discovery-chip[aria-pressed="true"] { border-color: var(--sd-blue); background: var(--sd-blue); color: var(--sd-button-ink); }
#tg-results.tg-discovery .tg-discovery-chip[aria-pressed="true"] .tg-discovery-chip-count { color: inherit; opacity: .9; }
#tg-results.tg-discovery .tg-discovery-species-row { display: flex; align-items: center; gap: 10px; }
#tg-results.tg-discovery .tg-discovery-species-row label { flex-shrink: 0; color: var(--sd-muted); font-size: 11px; }
#tg-results.tg-discovery :is(.tg-discovery-species-row, .tg-discovery-sort) select { max-width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 8px 32px 8px 12px; border: 1px solid #b8d7ee; border-radius: 7px; background-color: var(--sd-surface); color: var(--sd-navy); box-shadow: none; font-size: 12px; line-height: 1.5; }
#tg-results.tg-discovery .tg-discovery-species-row select { width: min(270px, 100%); }
#tg-results.tg-discovery .tg-discovery-sort { flex: 0 0 200px; }
#tg-results.tg-discovery .tg-discovery-sort label { display: block; margin: 0 0 7px; color: var(--sd-muted); font-size: 11px; }
#tg-results.tg-discovery .tg-discovery-sort select { width: 100%; }
#tg-results.tg-discovery .tg-discovery-reset { align-self: flex-start; min-height: 36px; margin: -2px 0 0; padding: 3px 2px; border: 0; border-radius: 3px; background: none; color: var(--sd-blue); box-shadow: none; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
#tg-results.tg-discovery .tg-discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
#tg-results.tg-discovery .tg-discovery-item { display: block; min-width: 0; margin: 0; padding: 0; list-style: none; }
#tg-results.tg-discovery .tg-discovery-item::before, #tg-results.tg-discovery .tg-discovery-item::after { content: none; }
#tg-results.tg-discovery .tg-discovery-card { height: 100%; margin: 0; border: 1px solid var(--sd-line); border-radius: 9px; background: var(--sd-surface); box-shadow: 0 2px 8px #1c526404; transition: border-color .15s, box-shadow .15s; }
#tg-results.tg-discovery .tg-discovery-card:hover { border-color: #86b5d3; box-shadow: 0 6px 18px var(--sd-shadow); }
#tg-results.tg-discovery .tg-discovery-card-link { display: flex; flex-direction: column; height: 100%; min-width: 0; padding: 4px; border: 0; border-radius: inherit; background: transparent; color: var(--sd-navy); text-decoration: none; }
#tg-results.tg-discovery .tg-discovery-card-link:hover { color: var(--sd-navy); text-decoration: none; }
#tg-results.tg-discovery .tg-discovery-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; flex-shrink: 0; overflow: hidden; border-radius: 5px; background: var(--sd-pale); }
#tg-results.tg-discovery .tg-discovery-photo img { display: block; width: 100%; max-width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; object-fit: contain; }
#tg-results.tg-discovery .tg-discovery-photo-fallback { color: #7296ae; font-family: Georgia, serif; font-size: 32px; letter-spacing: .08em; }
#tg-results.tg-discovery .tg-discovery-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 11px 11px 10px; }
#tg-results.tg-discovery .tg-discovery-category { display: block; margin: 0 0 5px; color: var(--sd-muted); font-size: 10px; font-weight: 500; letter-spacing: .09em; line-height: 1.5; }
#tg-results.tg-discovery .tg-discovery-card-title { display: block; margin: 0 0 15px; padding: 0; border: 0; background: none; color: var(--sd-navy); font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 16px; font-weight: 600; line-height: 1.75; letter-spacing: .015em; overflow-wrap: anywhere; }
#tg-results.tg-discovery .tg-discovery-card-title::before, #tg-results.tg-discovery .tg-discovery-card-title::after { content: none; }
#tg-results.tg-discovery .tg-discovery-card-bottom { display: grid; grid-template-columns: 1fr 30px; align-items: center; gap: 6px 7px; margin-top: auto; }
#tg-results.tg-discovery .tg-discovery-date { grid-column: 1; color: var(--sd-muted); font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1.5; }
#tg-results.tg-discovery .tg-discovery-read { grid-column: 1; color: var(--sd-blue); font-size: 11px; font-weight: 600; letter-spacing: .06em; line-height: 1.5; }
#tg-results.tg-discovery .tg-discovery-arrow { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sd-pale); color: var(--sd-navy); font-size: 19px; font-weight: 400; line-height: 1; }
#tg-results.tg-discovery .tg-discovery-message { padding: 30px 20px; border: 1px dashed var(--sd-line); border-radius: 10px; background: var(--sd-surface); text-align: center; }
#tg-results.tg-discovery .tg-discovery-message p { max-width: 540px; margin: 0 auto; color: var(--sd-muted); font-size: 14px; line-height: 1.9; }
#tg-results.tg-discovery .tg-discovery-retry { min-height: 44px; margin: 18px 0 0; padding: 8px 20px; border: 1px solid #8eb9d7; border-radius: 7px; background: var(--sd-surface); color: var(--sd-blue); box-shadow: none; font-size: 13px; }
#tg-results.tg-discovery .tg-discovery-footer { overflow-anchor: none; position: relative; min-height: 72px; margin-top: 28px; }
#tg-results.tg-discovery .tg-discovery-more-wrap { position: relative; z-index: 1; width: min(320px, 100%); margin: 0 auto; text-align: center; }
#tg-results.tg-discovery .tg-discovery-more { display: inline-flex; align-items: center; justify-content: center; gap: 24px; width: 100%; min-height: 49px; margin: 0; padding: 10px 24px; border: 1px solid #125590; border-radius: 28px; background: linear-gradient(110deg, #1769aa, #104d85); color: #fff; box-shadow: inset 0 1px 0 #ffffff21; font-size: 14px; font-weight: 600; letter-spacing: .07em; line-height: 1.6; }
#tg-results.tg-discovery .tg-discovery-more:hover { background: #104d85; }
#tg-results.tg-discovery .tg-discovery-more span { font-size: 23px; line-height: 1; }
#tg-results.tg-discovery .tg-discovery-progress { margin: 8px 0 0; color: var(--sd-muted); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.6; }
#tg-results.tg-discovery .tg-discovery-signature { position: absolute; right: 0; bottom: 3px; margin: 0; padding-top: 7px; color: var(--sd-muted); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 10px; letter-spacing: .11em; line-height: 1.9; }
#tg-results.tg-discovery .tg-discovery-signature::before { content: ""; position: absolute; top: 0; right: 0; width: 72px; height: 1px; background: #adcde3; }
#tg-results.tg-discovery .tg-discovery-orbit { position: absolute; z-index: -1; top: -134px; right: -103px; width: 280px; height: 280px; border: 1px solid #bcd9ec; border-radius: 50%; pointer-events: none; opacity: .75; }
#tg-results.tg-discovery .tg-discovery-orbit::before { content: ""; position: absolute; inset: 7px; border: 1px solid #bcd9ec; border-radius: 50%; }
#tg-results.tg-discovery .tg-discovery-orbit::after { content: "✦"; position: absolute; left: -18px; bottom: 0; color: #82b0d1; font-size: 28px; }
#tg-results.tg-discovery .tg-discovery-botanical { position: absolute; z-index: -1; bottom: -5px; left: 13px; width: 72px; height: 99px; border-left: 1px solid #8db6cd; transform: rotate(31deg); opacity: .55; pointer-events: none; }
#tg-results.tg-discovery .tg-discovery-botanical::before { content: ""; position: absolute; left: -1px; top: 52px; width: 50px; height: 1px; background: #8db6cd; transform: rotate(-28deg); transform-origin: left; }
#tg-results.tg-discovery .tg-discovery-botanical i { position: absolute; left: 1px; width: 13px; height: 31px; border: 1px solid #8db6cd; border-radius: 100% 0 100% 0; background: linear-gradient(25deg, #bbd9eb50, #a1c7df9c); transform: rotate(18deg); transform-origin: bottom; }
#tg-results.tg-discovery .tg-discovery-botanical i:nth-child(1) { top: -4px; left: -2px; transform: rotate(-17deg); }
#tg-results.tg-discovery .tg-discovery-botanical i:nth-child(2) { top: 22px; left: 0; }
#tg-results.tg-discovery .tg-discovery-botanical i:nth-child(3) { top: 26px; left: -13px; transform: rotate(-61deg); }
#tg-results.tg-discovery .tg-discovery-botanical i:nth-child(4) { top: 49px; left: 0; }
#tg-results.tg-discovery .tg-discovery-botanical i:nth-child(5) { top: 26px; left: 36px; transform: rotate(50deg); }

html[data-lani-theme="dark"] #tg-results.tg-discovery {
  --sd-ink: #dce9f4;
  --sd-navy: #d3e9fb;
  --sd-muted: #a4bdd1;
  --sd-line: #3a5973;
  --sd-surface: #192d40;
  --sd-pale: #233e55;
  --sd-blue: #9acef2;
  --sd-button-ink: #112d44;
  --sd-shadow: #00000024;
  background: radial-gradient(ellipse at 7% 0%, #24485f 0%, transparent 45%), linear-gradient(145deg, #142c41, #162b3c 62%, #152d40);
}
html[data-lani-theme="dark"] #tg-results.tg-discovery .tg-discovery-medallion { border-color: #527894; background: radial-gradient(circle at 35% 30%, #345b76, #25425a); color: #c8e3f5; }
html[data-lani-theme="dark"] #tg-results.tg-discovery :is(.tg-discovery-chip, select, .tg-discovery-retry) { border-color: #567d9a; }
html[data-lani-theme="dark"] #tg-results.tg-discovery .tg-discovery-chip[aria-pressed="true"] { border-color: var(--sd-blue); }
html[data-lani-theme="dark"] #tg-results.tg-discovery .tg-discovery-chip:hover:not(:disabled):not([aria-pressed="true"]) { background: #2d4b63; }
html[data-lani-theme="dark"] #tg-results.tg-discovery .tg-discovery-chip[aria-pressed="true"]:hover { background: #b4ddf9; }
html[data-lani-theme="dark"] #tg-results.tg-discovery :is(button, select, a):focus-visible { outline-color: #b6dffd; }
html[data-lani-theme="dark"] #tg-results.tg-discovery .tg-discovery-photo-fallback { color: #adcfe5; }
html[data-lani-theme="dark"] #tg-results.tg-discovery .tg-discovery-orbit { opacity: .25; }
html[data-lani-theme="dark"] #tg-results.tg-discovery .tg-discovery-botanical { opacity: .35; }

@media (max-width: 900px) {
  #tg-results.tg-discovery { padding: 28px 22px 22px; }
  #tg-results.tg-discovery .tg-discovery-header { gap: 18px; }
  #tg-results.tg-discovery .tg-discovery-medallion { flex-basis: 86px; width: 86px; height: 86px; }
  #tg-results.tg-discovery #tg-discovery-emblem img { width: 76px; height: 76px; }
  #tg-results.tg-discovery .tg-discovery-tools { flex-wrap: wrap; }
  #tg-results.tg-discovery .tg-discovery-filters { flex-basis: 100%; }
  #tg-results.tg-discovery .tg-discovery-sort { flex-basis: 240px; }
  #tg-results.tg-discovery .tg-discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #tg-results.tg-discovery .tg-discovery-signature { display: none; }
}
@media (max-width: 600px) {
  #tg-results.tg-discovery { padding: 19px 13px 18px; margin-top: 23px; border-radius: 12px; scroll-margin-top: 16px; }
  #tg-results.tg-discovery .tg-discovery-header { align-items: flex-start; gap: 13px; min-height: 0; padding: 24px 0 0; margin-bottom: 21px; }
  #tg-results.tg-discovery .tg-discovery-medallion { flex-basis: 62px; width: 62px; height: 62px; margin-top: 1px; }
  #tg-results.tg-discovery #tg-discovery-emblem { font-size: 21px; }
  #tg-results.tg-discovery #tg-discovery-emblem img { width: 56px; height: 56px; }
  #tg-results.tg-discovery .tg-discovery-eyebrow { margin-bottom: 6px; font-size: 9px; letter-spacing: .13em; }
  #tg-results.tg-discovery .tg-discovery-title { font-size: 22px; line-height: 1.65; letter-spacing: .005em; }
  #tg-results.tg-discovery .tg-discovery-close { top: -13px; right: -6px; min-height: 40px; font-size: 11px; }
  #tg-results.tg-discovery .tg-discovery-summary { display: block; margin-bottom: 17px; }
  #tg-results.tg-discovery .tg-discovery-count { gap: 5px; font-size: 14px; }
  #tg-results.tg-discovery .tg-discovery-count strong { font-size: 29px; }
  #tg-results.tg-discovery .tg-discovery-showing { margin-top: 5px; font-size: 11px; }
  #tg-results.tg-discovery .tg-discovery-tools { display: block; margin-bottom: 17px; }
  #tg-results.tg-discovery .tg-discovery-filters { gap: 13px; margin-bottom: 15px; }
  #tg-results.tg-discovery .tg-discovery-filter-group legend { font-size: 10px; }
  #tg-results.tg-discovery .tg-discovery-chips { gap: 6px; }
  #tg-results.tg-discovery .tg-discovery-chip { min-height: 42px; padding: 7px 12px; font-size: 11px; gap: 5px; }
  #tg-results.tg-discovery .tg-discovery-chip-count { font-size: 9px; }
  #tg-results.tg-discovery .tg-discovery-species-row { gap: 8px; }
  #tg-results.tg-discovery .tg-discovery-species-row label { font-size: 10px; }
  #tg-results.tg-discovery :is(.tg-discovery-species-row, .tg-discovery-sort) select { min-height: 44px; font-size: 12px; }
  #tg-results.tg-discovery .tg-discovery-sort label { font-size: 10px; }
  #tg-results.tg-discovery .tg-discovery-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  #tg-results.tg-discovery .tg-discovery-card { border-radius: 8px; }
  #tg-results.tg-discovery .tg-discovery-card-body { padding: 10px 10px 9px; }
  #tg-results.tg-discovery .tg-discovery-category { margin-bottom: 5px; font-size: 10px; }
  #tg-results.tg-discovery .tg-discovery-card-title { margin-bottom: 13px; font-size: 17px; line-height: 1.7; }
  #tg-results.tg-discovery .tg-discovery-card-bottom { grid-template-columns: 1fr 33px; }
  #tg-results.tg-discovery .tg-discovery-arrow { width: 33px; height: 33px; font-size: 20px; }
  #tg-results.tg-discovery .tg-discovery-date { font-size: 10px; }
  #tg-results.tg-discovery .tg-discovery-read { font-size: 11px; }
  #tg-results.tg-discovery .tg-discovery-footer { min-height: 0; margin-top: 23px; }
  #tg-results.tg-discovery .tg-discovery-more-wrap { width: min(300px, 100%); }
  #tg-results.tg-discovery .tg-discovery-more { min-height: 49px; font-size: 13px; }
  #tg-results.tg-discovery .tg-discovery-message { padding: 24px 15px; }
  #tg-results.tg-discovery .tg-discovery-message p { font-size: 13px; }
  #tg-results.tg-discovery .tg-discovery-botanical { left: -22px; opacity: .3; transform: scale(.7) rotate(31deg); }
}
@media (prefers-reduced-motion: reduce) {
  #tg-results.tg-discovery :is(.tg-discovery-chip, .tg-discovery-card) { transition: none; }
}
