@font-face {
  font-family: Handicrafts;
  src: url(/static/fonts/handicrafts-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Handicrafts;
  src: url(/static/fonts/handicrafts-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Handicrafts;
  src: url(/static/fonts/handicrafts-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #f8f6ef;
  --card: #fffefa;
  --ink: #2c261f;
  --muted: #665c4e;
  --line: #e0d9cb;
  --accent-wash: #f5edd9;
  --accent: #715015;
  --gold: #906821;
  --pale-gold: #f6edd9;
  --down: #983f36;
  --up: #775519;
  --pad: clamp(18px, 2.5vw, 32px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Handicrafts, Tahoma, Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #aa7d26;
  outline-offset: 3px;
}
.wrap {
  width: min(1176px, calc(100% - 80px));
  margin: 0 auto;
}
main {
  flex: 1;
}
.ico {
  width: 21px;
  height: 21px;
  flex: none;
}
.skip {
  position: absolute;
  top: -100px;
  background: white;
  padding: 8px;
}
.skip:focus {
  top: 0;
  z-index: 5;
}
header {
  background: var(--card);
  border-top: 3px solid #b38a3f;
  border-bottom: 1px solid var(--line);
}
.head,
.foot {
  display: flex;
  align-items: center;
  gap: 52px;
}
.head {
  min-height: 76px;
}
.brand {
  font-size: 33px;
  letter-spacing: normal;
  white-space: nowrap;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  line-height: 1.2;
}
.brand:hover {
  text-decoration: none;
}
.brandmark {
  background: url(/static/mark.svg?v=2) center/contain no-repeat;
  width: 38px;
  height: 38px;
  display: inline-block;
}
.head nav {
  align-self: stretch;
  display: flex;
  gap: 32px;
  align-items: center;
}
.head nav a {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.head nav [aria-current] {
  color: var(--ink);
}
.head nav [aria-current]:after {
  content: "";
  height: 3px;
  background: var(--gold);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.asklink {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.asklink .ico {
  width: 17px;
}
.intro,
.subintro {
  padding: 36px 0 24px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #77591e;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.rule {
  width: 24px;
  height: 2px;
  background: #ae8436;
}
.headline,
.section-title,
.chart-head,
.quote-foot,
.quote-top,
.delta-row,
.seg,
.bigquote,
.ask-card,
.ask-card > div,
.tool,
.foot > div,
.section-title a,
.textlink {
  display: flex;
  align-items: center;
}
.headline,
.section-title,
.chart-head,
.quote-foot,
.quote-top {
  justify-content: space-between;
}
.headline {
  gap: 20px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 3.3vw, 48px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: normal;
}
h1 em {
  font-style: normal;
  color: #886529;
}
.date,
.quiet,
.label,
.delta-row > span,
.quote-foot,
.rates small,
.tool > span:not(.tileicon),
.plot-caption {
  color: var(--muted);
}
.date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.date .ico {
  width: 16px;
}
.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.primary {
  padding: var(--pad);
  min-width: 0;
}
.quote-top {
  align-items: flex-start;
  gap: 10px;
}
.label,
.quiet {
  font-size: 14px;
}
.label {
  font-weight: 600;
}
.bigquote {
  gap: 10px;
  align-items: baseline;
  margin-top: 2px;
}
.bigquote b {
  font:
    600 clamp(52px, 6vw, 78px)/1.15 Handicrafts, "Segoe UI",
    Arial,
    sans-serif;
  letter-spacing: -4px;
  font-variant-numeric: tabular-nums;
  color: #423424;
}
.bigquote > span {
  font-size: 20px;
  color: var(--muted);
}
.switch-wrap {
  text-align: end;
}
.switch-wrap .label {
  font-size: 12px;
}
.seg {
  gap: 3px;
  background: #f2efe7;
  border-radius: 7px;
  padding: 3px;
  display: inline-flex;
}
.karats {
  display: flex;
  margin-top: 6px;
  direction: rtl;
}
.seg button {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  min-height: 33px;
  min-width: 36px;
  padding: 5px 9px;
}
.seg button[aria-pressed="true"] {
  background: var(--accent);
  color: white;
}
.delta-row {
  gap: 9px;
  margin-top: 7px;
}
.delta {
  padding: 2px 9px;
  border-radius: 5px;
  background: #f5edd9;
  color: var(--accent);
  font:
    600 13px/1.85 Handicrafts,
    "Segoe UI",
    sans-serif;
  unicode-bidi: plaintext;
}
.delta[data-dir="down"] {
  background: #f6e8e2;
  color: var(--down);
}
.delta-row > span,
.quote-foot {
  font-size: 12px;
}
.chart-head {
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
h2 {
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: normal;
  font-weight: 600;
}
.chart-head h2 {
  font-size: 17px;
}
.periods {
  background: transparent;
  gap: 2px;
}
.periods button[aria-pressed="true"] {
  background: var(--accent-wash);
  color: var(--accent);
  font-weight: 700;
}
.plot {
  position: relative;
  width: 100%;
  height: 148px;
  margin-top: 11px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.plot svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  touch-action: pan-y;
}
.plot text {
  font:
    12px Handicrafts, "Segoe UI",
    Tahoma,
    sans-serif;
  fill: var(--muted);
  font-variant-numeric: tabular-nums;
}
.plot-caption {
  min-height: 20px;
  margin-top: 3px;
  font-size: 12px;
}
.quote-foot {
  margin-top: 8px;
  font-size: 13px;
  gap: 10px;
}
.quote-foot i {
  display: inline-block;
  background: #b0842e;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-inline-end: 6px;
}
.quote-foot .current i {
  background: #8c6624;
}
.quote-foot a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.rates {
  padding: var(--pad);
  flex: 1;
}
.rates .quiet {
  margin-top: 2px;
}
.rates table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  margin: 15px 0 8px;
  font-variant-numeric: tabular-nums;
}
.rates th,
.rates td {
  text-align: start;
}
.rates thead th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
}
.rates tr > *:not(:first-child) {
  text-align: end;
}
.rates tbody tr:not(:last-child) {
  border-bottom: 1px solid #ebe5d8;
}
.rates tbody th,
.rates tbody td {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
}
.rates tbody td {
  font-family: Handicrafts, "Segoe UI", Arial, sans-serif;
}
.rates tbody td:last-child {
  font-size: 12px;
}
.up {
  color: var(--up);
}
.down {
  color: var(--down);
}
.rates small {
  font-size: 11px;
}
.coin {
  width: 11px;
  height: 11px;
  border: 1px solid #b18b3e;
  box-shadow: inset 0 0 0 2px #f8e4ab;
  border-radius: 50%;
  display: inline-block;
  margin-inline-end: 7px;
  background: #c9a758;
}
.c22 {
  opacity: 0.85;
}
.c21 {
  opacity: 0.74;
}
.c18 {
  filter: saturate(0.5);
}
.ask-card {
  padding: 18px 20px;
  gap: 12px;
  border: 1px solid #dfd0b0;
  border-radius: 12px;
  background: #f4ecd8;
}
.ask-card > div {
  align-items: flex-start;
  flex-direction: column;
}
.ask-card strong {
  font-size: 16px;
}
.ask-card span:not(.ask-icon) {
  font-size: 12px;
  color: var(--muted);
}
.ask-card > .ico,
.tool > .ico,
.guide-list a > .ico:last-child {
  margin-inline-start: auto;
  width: 17px;
}
.ask-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #ead9b1;
  color: var(--accent);
  border-radius: 9px;
}
.ad {
  margin: 24px 0;
  min-height: 118px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border-block: 1px solid #e6dfd2;
  text-align: center;
  color: #6b6254;
}
.ad > span {
  font-size: 11px;
}
.ad.preview {
  background: repeating-linear-gradient(
    135deg,
    #efebe1,
    #efebe1 1px,
    transparent 1px,
    transparent 7px
  );
  min-height: 118px;
}
.ad small {
  padding: 1px 9px;
  background: var(--paper);
  font-size: 12px;
}
.adsbygoogle {
  display: inline-block;
  width: 728px;
  height: 90px;
  max-width: 100%;
}
.section {
  margin: 28px auto 36px;
}
.section-title {
  margin-bottom: 14px;
}
.section-title a,
.textlink {
  gap: 7px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.section-title .ico {
  width: 16px;
}
.toolgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 38px 1fr 18px;
  column-gap: 11px;
  padding: 17px;
  align-items: center;
}
.tool:hover,
.guide-list a:hover,
.ask-card:hover {
  border-color: #a88644;
  text-decoration: none;
}
.tileicon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #786134;
  background: #f3eddc;
  border-radius: 9px;
  grid-row: 1/3;
}
.tool > strong {
  font-size: 16px;
}
.tool > span:not(.tileicon) {
  grid-column: 2;
  font-size: 12px;
}
.tool > .ico {
  grid-column: 3;
  grid-row: 1/3;
}
.guide-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.guide-entry {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(18px, 2.3vw, 28px);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
}
.guide-entry:hover, .guide-entry:focus-visible { border-color: var(--gold); text-decoration: none; }
.guide-entry h2 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.55; }
.guide-entry p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.guide-symbol { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--pale-gold); color: var(--accent); }
.guide-entry > .ico { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--accent); width: 18px; }
.guide-list {
  border-block: 1px solid var(--line);
}
.guide-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 3px;
}
.guide-list a + a {
  border-top: 1px solid var(--line);
}
.guide-list a > .ico:first-child {
  width: 17px;
  color: var(--gold);
}
.guide-list strong {
  font-weight: 600;
  font-size: 16px;
}
footer {
  margin-top: 45px;
  border-top: 1px solid var(--line);
  background: #f0ede4;
}
.foot {
  justify-content: space-between;
  min-height: 74px;
}
.foot .brand {
  font-size: 23px;
}
.foot .brandmark {
  width: 26px;
  height: 26px;
}
.foot > div {
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.subintro {
  padding-top: 45px;
}
.crumb {
  display: inline-block;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--muted);
}
.subintro > p {
  color: var(--muted);
  max-width: 65ch;
}
.formpanel,
.article {
  padding: var(--pad);
  max-width: 800px;
  margin-bottom: 32px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.formpanel label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
  font-size: 14px;
}
@media (any-pointer: coarse) {
  /* Small editable text makes mobile Safari zoom the viewport on focus. */
  .formpanel :is(input, select, textarea) {
    font-size: max(16px, 1rem);
  }
}
.input-unit,
.formpanel select,
textarea {
  border: 1px solid #b8ad9d;
  background: white;
  border-radius: 7px;
}
.input-unit {
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.input-unit input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  direction: ltr;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.input-unit span {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.formpanel select,
textarea {
  padding: 8px 10px;
  min-height: 45px;
}
.action {
  margin-top: 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}
.action:disabled {
  opacity: 0.6;
}
.action .ico {
  width: 16px;
}
.result {
  background: var(--accent-wash);
  border-inline-start: 3px solid var(--accent);
  margin: 20px 0 9px;
  padding: 16px;
  min-height: 54px;
  border-radius: 5px;
  white-space: pre-line;
}
.article p {
  max-width: 68ch;
  margin: 8px 0 21px;
  line-height: 1.95;
}
.article h2:not(:first-child) {
  margin-top: 25px;
}
.article .lede {
  font-size: 18px;
}
.article a {
  text-decoration: underline;
}
.hints {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hints button {
  border: 1px solid #d5cbbc;
  background: var(--paper);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
}
#last-visit {
  font-size: 12px;
  margin-top: 5px;
}
.subintro + .toolgrid {
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .market-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(255px, 1fr);
    gap: 12px;
  }
  .toolgrid {
    gap: 8px;
  }
  .tool {
    grid-template-columns: 32px 1fr;
    gap: 7px;
    padding: 12px;
  }
  .tool > .ico {
    display: none;
  }
  .tileicon {
    width: 32px;
    height: 32px;
  }
  .bigquote b {
    font-size: 56px;
  }
  .brand {
    font-size: 29px;
  }
  .wrap.head {
    gap: 28px;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .wrap.head {
    min-height: 62px;
    gap: 20px;
  }
  .brandmark {
    width: 29px;
    height: 29px;
  }
  .brand {
    font-size: 27px;
    gap: 6px;
  }
  .head nav {
    gap: 15px;
  }
  .head nav a {
    font-size: 13px;
  }
  .asklink span {
    display: none;
  }
  .asklink {
    width: 32px;
    height: 36px;
    justify-content: center;
  }
  .intro,
  .subintro {
    padding: 21px 0 16px;
  }
  .headline {
    flex-wrap: wrap;
    gap: 4px;
  }
  .headline h1 {
    font-size: 32px;
    line-height: 1.5;
  }
  .date {
    font-size: 11px;
  }
  .date .ico {
    width: 14px;
  }
  .market-layout,
  .toolgrid {
    grid-template-columns: 1fr;
  }
  .primary,
  .rates {
    padding: 17px;
  }
  .rail {
    gap: 12px;
  }
  .plot {
    height: 150px;
  }
  .ad,
  .ad.preview {
    min-height: 128px;
    margin: 16px 0;
  }
  .adsbygoogle {
    width: 300px;
    height: 100px;
  }
  .section {
    margin: 22px auto 26px;
  }
  .chart-head {
    margin-top: 16px;
    padding-top: 12px;
  }
  .quote-foot {
    flex-wrap: wrap;
  }
  .rates table {
    margin-top: 9px;
  }
  .rates tbody th,
  .rates tbody td {
    padding: 8px 0;
  }
  .tool {
    grid-template-columns: 38px 1fr 20px;
    padding: 14px;
  }
  .tool > .ico {
    display: block;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .section-title h2 {
    font-size: 22px;
  }
  .foot {
    gap: 18px;
  }
  .seg button {
    min-width: 32px;
    min-height: 36px;
  }
  .bigquote b {
    font-size: 58px;
  }
  .switch-wrap .label {
    font-size: 11px;
  }
  .plot-caption {
    font-size: 11px;
  }
}
@media (max-width: 430px) {
  .headline {
    display: block;
  }
  .date {
    margin-top: 5px;
  }
  .wrap.head {
    gap: 12px;
  }
  .head nav {
    gap: 12px;
  }
  .wrap {
    width: calc(100% - 24px);
  }
  .seg button {
    padding: 5px 6px;
    min-width: 28px;
  }
  .bigquote b {
    font-size: 50px;
  }
  .bigquote {
    gap: 5px;
  }
  .bigquote > span {
    font-size: 16px;
  }
  .headline h1 {
    font-size: 29px;
  }
  .primary {
    padding: 14px;
  }
  .head nav a {
    font-size: 12px;
  }
  .hints {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 370px) {
  .primary .quote-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .primary .switch-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: start;
  }
  .primary .karats {
    margin: 0;
  }
  .head nav {
    gap: 8px;
  }
}
.rates table tr > :nth-child(n + 2) {
  text-align: left;
}
.quote-unit, .pair-label, .pair-price, .quote-options, .other-karats {
  display: flex;
  align-items: center;
}
.quote-unit {
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.quote-unit span, .pair-label small, .pair-price small, .other-karats > span {
  font-size: .78rem;
  font-weight: 400;
  color: var(--muted);
}
.quote-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.quote-choice {
  display: block;
  text-align: start;
  padding: 12px clamp(9px, 1.4vw, 20px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.quote-choice[aria-pressed="true"] {
  background: linear-gradient(112deg, #fffaf0, #f6ebcf);
  border-color: #af8847;
}
.quote-choice:hover { border-color: var(--gold); }
.pair-label { gap: 9px; flex-wrap: wrap; font-weight: 600; }
.pair-price { gap: 7px; align-items: baseline; margin-top: 6px; }
.tick-move { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; font-size: .77rem; line-height: 1.55; }
.tick-move > span { font-weight: 600; color: #654a23; }
.tick-move small { font-size: inherit; color: var(--muted); }
@media (max-width: 440px) {
  .tick-move { display: grid; }
}
.pair-price b {
  font: 600 clamp(32px, 3.4vw, 52px)/1.22 Handicrafts, "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: normal;
  color: #47391d;
}
.quote-options { justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.quote-options .delta-row { margin: 0; }
.other-karats { gap: 6px; }
.other-karats .seg { background: #f3efe5; }
.other-karats [aria-pressed="true"] { background: #795b22; }
.periods button[aria-pressed="true"] { background: var(--pale-gold); color: #72521d; }
.guide-more { margin-top: 1rem; color: #72521d; text-decoration: underline; text-underline-offset: 3px; }
.tool-jumps, .related-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.tool-jumps { margin: 0 0 22px; }
.tool-jumps a { border: 1px solid #cfbd97; background: #faf5e9; color: #6c4f1c; border-radius: 8px; padding: 7px 14px; }
.tools-heading { margin-bottom: 12px; }
.formpanel fieldset { min-width: 0; margin: 0; border-radius: 10px; border: 1px solid var(--line); padding: 12px 14px 16px; }
.formpanel legend { padding-inline: 6px; color: #735420; font-weight: 600; }
.offer-box { display: grid; gap: 10px; }
.weights { grid-column: 1 / -1; }
.weight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); gap: 9px; }
.formpanel .fields > *, .formpanel select { min-width: 0; }
.formpanel [hidden] { display: none; }
.guide-more .ico { width: 15px; height: 15px; vertical-align: middle; }
.bullion-table { max-width: 760px; margin: 18px 0 32px; }
.bullion-table tbody td:last-child { font-size: 1rem; }
.karat-link { text-decoration: underline; text-underline-offset: 4px; color: var(--accent); }
.detail-layout { display: grid; align-items: start; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 18px; }
.quote-detail { padding: var(--pad); background: linear-gradient(125deg, var(--card), #f7edd7); }
.detail-number { font-size: clamp(34px, 4vw, 52px); font-weight: 600; line-height: 1.35; margin: 6px 0; }
.detail-number small { font-size: 17px; }
.quote-detail p + p, .ounce-quote { margin-top: 12px; }
.ounce-quote { border-top: 1px solid var(--line); padding-top: 12px; }
.ounce-quote h3 { font-size: 16px; margin: 0; }
.detail-rates table { margin-bottom: 0; }
.detail-rates :is(td, th) { overflow-wrap: anywhere; }
.detail-guide { margin-top: 20px; }
@media (max-width: 720px) { .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
@media (max-width: 720px) {
  .pair-label { display: grid; gap: 0; }
  .quote-unit { font-size: .91rem; }
  .quote-pair { gap: 7px; }
  .brand { font-size: 22px; }
  .wrap.head { gap: 15px; }
  .intro { padding-top: 20px; }
}
@media (max-width: 430px) {
  .wrap.head { gap: 8px; }
  .head nav { gap: 10px; }
  .brand { font-size: 20px; }
  .head .brandmark { width: 25px; height: 25px; }
  .head .asklink { width: 22px; }
}
@media (max-width: 360px) {
  .head nav { gap: 7px; }
  .head .brand { font-size: 18px; }
  .head .asklink { width: 18px; }
}
@media (max-width: 600px) {
  .wrap.head {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand ask" "nav nav";
    gap: 0 12px;
    padding-top: 4px;
  }
  .head .brand { grid-area: brand; justify-self: start; font-size: 24px; min-height: 40px; }
  .head .asklink { grid-area: ask; width: auto; min-height: 44px; gap: 6px; font-size: 14px; }
  .head .asklink span { display: inline; }
  .head nav { grid-area: nav; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .head nav a { justify-content: center; min-height: 44px; font-size: 15px; }
  .head nav [aria-current] { color: var(--accent); }
  .intro { padding: 14px 0; }
  .headline h1 { font-size: clamp(26px, 7vw, 35px); }
  .date { font-size: 12px; }
  .other-karats .seg button, .periods button { min-width: 44px; min-height: 44px; }
  .pair-price b { font-size: clamp(30px, 8vw, 42px); }
  .pair-label small, .pair-price small { font-size: 13px; }
  .tool > span:not(.tileicon), .guide-entry p, .ask-card span:not(.ask-icon) { font-size: 14px; }
  .guide-entry { padding: 16px; gap: 5px 12px; grid-template-columns: 36px minmax(0, 1fr) 18px; }
  .guide-symbol { width: 36px; height: 36px; grid-row: 1 / 3; }
  .guide-entry h2, .guide-entry p { grid-column: 2; }
  .guide-entry h2 { font-size: 18px; }
  .guide-entry > .ico { position: static; grid-column: 3; grid-row: 1 / 3; align-self: center; }
}

.ask-page {
  max-inline-size: 48rem;
  margin-inline: auto;
}
.ask-page .subintro {
  padding-block: clamp(1rem, 4vw, 2.75rem) 1rem;
}
.ask-page .subintro h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}
.ask-chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.ask-page [hidden] {
  display: none;
}
.ask-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.chat-welcome {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}
.chat-welcome h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  line-height: 1.5;
}
.chat-welcome p {
  margin-block-start: .15rem;
  color: var(--muted);
  font-size: .95rem;
}
.chat-mark {
  display: grid;
  place-items: center;
  flex: none;
  inline-size: 2.7rem;
  block-size: 2.7rem;
  border-radius: 15px;
  background: var(--pale-gold);
  color: var(--accent);
}
.chat-mark .ico {
  inline-size: 1.45rem;
  block-size: 1.45rem;
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-block: 1.2rem 1.55rem;
}
.chat-suggestions button {
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: .4rem .95rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: var(--card);
  color: #55472f;
  font-size: .91rem;
  text-align: start;
  line-height: 1.55;
}
.chat-suggestions button:hover {
  border-color: #baa16e;
  background: #fbf7ee;
}
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: .95rem;
  max-height: 48vh;
  max-height: min(52dvh, 34rem);
  overflow-y: auto;
  scroll-padding-block: .4rem;
  scrollbar-color: #d4c7ac transparent;
  scrollbar-width: thin;
}
.chat-thread:empty {
  display: none;
}
.chat-thread:not(:empty) {
  margin-block-end: 1.2rem;
  padding: .25rem .2rem .5rem;
}
.chat-message {
  max-inline-size: min(88%, 60ch);
  min-inline-size: 0;
  padding: .65rem 1rem .78rem;
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.chat-message-user {
  align-self: flex-start;
  background: #f2e6cc;
  border-end-start-radius: 5px;
}
.chat-message-assistant {
  align-self: flex-end;
  border: 1px solid #e4dfd3;
  background: #faf8f2;
  border-end-end-radius: 5px;
}
.chat-author {
  display: block;
  margin-block-end: .1rem;
  font-size: .8rem;
  color: #705220;
  font-weight: 600;
}
.chat-body {
  white-space: pre-wrap;
  line-height: 1.75;
}
.chat-message [data-pending], .chat-message[data-pending] .chat-body,
.chat-meta {
  color: var(--muted);
}
.chat-meta {
  display: block;
  margin-block-start: .4rem;
  font-size: .82rem;
}
.chat-source, .chat-retry {
  color: var(--accent);
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.chat-retry {
  padding: .45rem 0;
  border: 0;
  background: transparent;
}
.chat-composer {
  min-width: 0;
}
.chat-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .45rem;
  padding: .35rem;
  border: 1px solid #b8a681;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 2px 7px #4c37100a;
}
.chat-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px #bc944530;
}
.chat-input-wrap textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-height: 8rem;
  max-height: min(8rem, 32dvh);
  resize: none;
  overflow-y: auto;
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: .55rem .6rem;
  font-size: max(16px, 1rem);
  line-height: 1.65;
}
.chat-input-wrap textarea:focus-visible {
  outline: none;
}
.chat-input-wrap textarea::placeholder {
  color: #766c5c;
  opacity: 1;
}
.chat-send {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: #fffaf0;
}
.chat-send .ico {
  width: 22px;
  height: 22px;
}
.chat-send:enabled:hover { background: #5f4314; }
.chat-send:disabled { background: #e8dfcd; color: #695a42; cursor: default; }
.chat-disclaimer, .chat-quota {
  color: var(--muted);
  text-align: center;
  text-wrap: pretty;
  line-height: 1.55;
}
.chat-disclaimer { margin-block: .65rem 0; font-size: .85rem; }
.chat-quota { margin-block: .25rem 0; font-size: .79rem; }
@media (max-width: 480px) {
  .ask-chat { border-radius: 16px; }
  .chat-message { max-inline-size: 94%; padding-inline: .8rem; }
  .chat-chips { margin-block: .9rem 1.15rem; }
  .chat-suggestions button { padding-inline: .75rem; }
}
@media (max-height: 480px) {
  .chat-thread { max-height: 36vh; max-height: 36dvh; }
}
