/* old values in spectre */
html {
  box-sizing: border-box;
  font-size: 10px;
  line-height: 1.42857143;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-size: 1.4rem;
  overflow-x: hidden;
}

a:focus, a:hover {
  color: #000;
}
h1, h2, h3, h4, h5, h6 {
  color: inherit;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}
h1 {
  font-size: 4rem;
}
h2 {
  font-size: 3.5rem;
}
h3 {
  font-size: 2.5rem;
}
h4 {
  font-size: 2rem;
}
h5 {
  font-size: 2rem;
}
h6 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 1rem;
}
/*************/

body {
    background-color: #EAEAEA;
}

/* override color to the old one in spectre */
a {
    color: #202528 !important;
}


table.main th {
    font-size: 125%;
}
table.main td{
    font-size: 120%;
}

table.p2p th {
    text-align: center
}
table.p2p td{
    text-align: center
}

.intra-link {
    text-align: right;
    font-size: 150%;
    margin: 10px 0;
}

h1 a, h2 a, h3 a, h4 a, h5 a {
    text-decoration: none !important;
}

td.add {
    height: 100px;
}

@media only screen and (max-width: 450px) {
    table.main {
        max-width: 450px;
    }
    /* table.main tbody { */
    /*     font-size: 120%; */
    /* } */
    table.main th {
        font-size: 100%;
    }
    table.main td{
        font-size: 100%;
    }

    #reftable tbody td {
        font-size: 110%;
    }
    /* headers of banxico reference */
    #reftable tbody td th{
        font-size: 80%;
    }

    #banner {
        text-align: right
    }

    .intra-link {
        font-size: 130%;
    }

}



.btn {
    border: .05rem solid #202528 !important;
}

.btn:active {
    color: #FAF1E8 !important;
    background-color: #494E4A;

}


.label.label-primary {
    color: #FAF1E8 !important;
    background-color: #494E4A !important;
}

.btn.btn-link{
    color: #202528;
}

.btn.btn-link.active, .btn.btn-link:active, .btn.btn-link:focus, .btn.btn-link:hover {
    color: #FAF1E8 !important;
    background-color: #494E4A;
}



#menu {
    border-top: 1px solid #202528;
    border-bottom: 1px solid #202528;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 3rem;
}

#menu > div > a, #menu > div > div > a {
    font-size: 2.2rem;
    padding: 15px 5px;
    width: 100%;
    border: 0 !important;
}

@media only screen and (max-width: 900px) {
    #menu > div > a, #menu > div > div > a {
        padding: 5px 5px 15px 5px;
    }
}

/* colo of the mobile side-bar background */
.menu .menu-item > a:focus, .menu .menu-item > a:hover, .menu .menu-item > a:active, .menu .menu-item > a.active {
    color: #FAF1E8 !important;
    background-color: #494E4A !important;
}

#sidebar a {
    font-size: 1.8rem;
}



#footer {
    border-top: 1px solid #202528;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

#bank-links a {
    text-decoration: underline !important;
}


img.historic-menu-logo {
    margin: 2rem 0;
}

#switch-mode a {
    padding: 1rem 2rem 2rem;
    font-size: 1.5rem;
}

/* todo */
#guide-content {
    font-size: 2rem;
}

.historic-link {
    text-decoration: underline;
}


#onza-de-oro img {
    margin-right: 5px;
}

#onza-de-oro a {
    color: #442E1E !important;
    background-color: #F4E8D1;
    padding-left: 0px;
}

#onza-de-oro a:hover {
    text-decoration: none;
    font-weight: bold;
}


#faqs {
  list-style-type: none;
}


#faqs li {
    margin: 0;
    font-size: 25px;
    font-weight: 300;
    line-height: 25px;
    padding: 1rem;
}


@media only screen and (max-width: 450px) {
    #faq img {
        max-width: 330px;
   }
}


.chip {
    font-size: 1.6rem;
    padding: 8px;
}

#faq {
    text-align: left;
}

#faq a {
    text-decoration: underline;
}

#faq li {
    margin: 2rem;
    list-style-position: outside;
}

#faqs-tags a.active {
    font-weight: bold;
}

#faqToast {
    padding: 0.8rem 0;
}

#faqToast button {
    border: 0  !important;
    padding-right: 2rem;
}

#faqToast a {
    color: #fff !important;
}

#reftable th.tooltip::after {
    text-align: center;
    font-size: 1rem ;
    white-space: normal;
    min-width: 150px;
}

.hard-small {
    font-size: 80% !important;
}

td.hard-small {
    padding: 0;
}

td.bb-0 {
    border-bottom: 0;
}

#show-chart-btn {
    font-size: 2rem;
    display: table-cell;
    vertical-align: middle;
}


/**********************************************************************
 * 2026 refresh: same sober silver/charcoal look, with lighter surfaces,
 * the tables as cards and tidier typography. Everything below only
 * overrides the rules above (and spectre), remove it to go back.
 **********************************************************************/
:root {
    --odp-bg: #F1F1EE;
    --odp-surface: #FFFFFF;
    --odp-surface-alt: #F8F8F6;
    --odp-ink: #202528;
    --odp-ink-soft: #5F666B;
    --odp-line: #DEDED8;
    --odp-accent: #494E4A;
    --odp-cream: #FAF1E8;
    --odp-radius: 10px;
    --odp-shadow: 0 1px 2px rgba(32, 37, 40, .06), 0 4px 14px rgba(32, 37, 40, .05);
}

body {
    background-color: var(--odp-bg);
    color: var(--odp-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* headings: a bit smaller and tighter */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
}
h3 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-top: 3.2rem;
    margin-bottom: 1.2rem;
}
h4 {
    font-weight: 400;
}
h5 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--odp-ink-soft);
    margin-top: 2rem;
}
#banner h1, #banner h2 {
    letter-spacing: -0.02em;
}

/* menu: lighter rules, an underline for the current page */
#menu {
    border-top: 1px solid var(--odp-line);
    border-bottom: 1px solid var(--odp-line);
    line-height: 2.4rem;
}
#menu > div > a, #menu > div > div > a {
    font-size: 1.7rem;
    padding: 12px 4px;
    border-radius: 0;
    white-space: nowrap;
    height: auto;
    transition: background-color .15s ease, color .15s ease;
}
#menu a strong {
    font-weight: 600;
    box-shadow: 0 2px 0 var(--odp-ink);
    padding-bottom: 3px;
}
#menu a:hover strong, #menu a:focus strong {
    box-shadow: 0 2px 0 var(--odp-cream);
}

/* tables as cards */
table.main, #reftable, #price-facts {
    background: var(--odp-surface);
    border: 1px solid var(--odp-line);
    border-radius: var(--odp-radius);
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: var(--odp-shadow);
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}
table.main > tbody > tr > th, #reftable > tbody > tr > th, #price-facts thead th {
    background: var(--odp-surface-alt);
    border-bottom: 1px solid var(--odp-line);
    color: var(--odp-ink-soft);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 1.1rem 1rem;
}
table.main > tbody > tr > td, #reftable > tbody > tr > td, #price-facts tbody td {
    border-bottom: 1px solid var(--odp-line);
    padding: 1.2rem 1rem;
    vertical-align: middle;
}
table.main > tbody > tr:last-child > td,
#reftable > tbody > tr:last-child > td,
#price-facts tbody tr:last-child td {
    border-bottom: 0;
}
table.main > tbody > tr > td:first-child {
    font-weight: 600;
    padding-left: 1.6rem;
}
table.main:not(.p2p) > tbody > tr:hover > td {
    background: var(--odp-surface-alt);
}

/* nested tables (price + "sobre mercado"): no lines, the price stands out */
table.main table, #reftable table {
    background: transparent;
    margin: 0 auto;
    width: auto;
    min-width: 70%;
}
table.main table td, #reftable table td, #reftable table th {
    border: 0;
    padding: .2rem .6rem;
}
#reftable table th {
    color: var(--odp-ink-soft);
    font-size: 1.15rem;
    font-weight: 600;
}
table.main td table > tbody > tr:first-child > td[colspan] {
    font-size: 1.9rem;
    font-weight: 600;
    padding-bottom: .4rem;
}
table.main td .hard-small, table.main td.hard-small {
    color: var(--odp-ink-soft);
}
/* the spread column */
table.main > tbody > tr > td:last-child table tr:first-child td {
    font-size: 1.7rem;
    font-weight: 600;
}
table.main > tbody > tr > td:last-child table tr:last-child td {
    color: var(--odp-ink-soft);
}
table.p2p td {
    font-size: 1.8rem !important;
    font-weight: 600;
}
#reftable > tbody > tr > td {
    font-size: 1.7rem;
    font-weight: 600;
}
#reftable table td {
    font-size: 1.6rem;
}

/* links to the historic pages: quiet until hover */
.historic-link {
    text-decoration: none;
    border-bottom: 1px dotted var(--odp-ink-soft);
    transition: border-color .15s ease;
}
.historic-link:hover, .historic-link:focus {
    text-decoration: none;
    border-bottom: 1px solid var(--odp-ink);
}

/* notes under and over the tables */
span.float-right, section > p, .accordion, #reftable + details {
    color: var(--odp-ink-soft);
    font-size: 1.25rem;
}
span.float-right {
    margin: .6rem .2rem;
}

.intra-link {
    font-size: 1.5rem;
    margin: 1.4rem 0;
}
.intra-link a {
    color: var(--odp-ink-soft) !important;
    border-bottom: 1px solid var(--odp-line);
    padding-bottom: 2px;
}
.intra-link a:hover {
    color: var(--odp-ink) !important;
    border-bottom-color: var(--odp-ink);
    text-decoration: none;
}

/* buttons, selects and other controls */
.btn {
    border-radius: 8px;
    transition: background-color .15s ease, color .15s ease;
}
#switch-mode.btn-group .btn:first-child { border-radius: 8px 8px 0 0; }
#switch-mode.btn-group .btn:last-child { border-radius: 0 0 8px 8px; }
#switch-mode.btn-group .btn:only-child { border-radius: 8px; }
a.nav-btn {
    background: var(--odp-surface);
    box-shadow: var(--odp-shadow);
}
#show-chart-btn {
    background: var(--odp-surface);
    border: 1px solid var(--odp-ink);
    border-radius: 8px;
    color: var(--odp-ink);
    cursor: pointer;
    display: inline-block;
    font-size: 1.7rem;
    margin: 1.5rem 0;
    padding: 1rem 2rem;
    transition: background-color .15s ease, color .15s ease;
}
#show-chart-btn:hover {
    background: var(--odp-accent);
    color: var(--odp-cream);
}
select {
    background-color: var(--odp-surface);
    border: 1px solid var(--odp-ink);
    border-radius: 8px;
    padding: .6rem 1rem;
}
.label {
    border-radius: 999px;
    padding: .3rem 1rem;
}
.chip {
    background: var(--odp-surface);
    border: 1px solid var(--odp-line);
    border-radius: 999px;
}
.toast {
    border: 0;
    border-radius: 8px;
}
#faqToast {
    background: var(--odp-accent);
    margin-bottom: .6rem;
}
#faqToast a {
    color: var(--odp-cream) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(250, 241, 232, .4);
}

.breadcrumb {
    color: var(--odp-ink-soft);
}

#footer {
    border-top: 1px solid var(--odp-line);
    color: var(--odp-ink-soft);
    font-size: 1.25rem;
    padding-top: 1.2rem;
}

#faqs li {
    background: var(--odp-surface);
    border: 1px solid var(--odp-line);
    border-radius: var(--odp-radius);
    font-size: 2rem;
    line-height: 1.3;
    margin: 1rem 0;
    padding: 1.4rem 1.8rem;
}
#faqs li a {
    text-decoration: none;
}

@media only screen and (max-width: 450px) {
    #banner h2 {
        font-size: 2.8rem;
        margin-top: 2rem;
    }
    h3 {
        font-size: 2rem;
    }
    table.main > tbody > tr > th, #reftable > tbody > tr > th {
        font-size: 1.05rem;
        padding: .9rem .4rem;
    }
    table.main > tbody > tr > td, #reftable > tbody > tr > td {
        padding: 1rem .4rem;
    }
    table.main > tbody > tr > td:first-child {
        padding-left: .8rem;
    }
    table.main td table > tbody > tr:first-child > td[colspan] {
        font-size: 1.55rem;
    }
    table.main > tbody > tr > td:last-child table tr:first-child td {
        font-size: 1.4rem;
    }
    table.main table td, #reftable table td, #reftable table th {
        padding: .15rem .2rem;
    }
    #reftable > tbody > tr > td, #reftable table td {
        font-size: 1.4rem;
    }
    #menu > div > a, #menu > div > div > a {
        font-size: 1.8rem;
    }
}

#price-facts {
    margin-bottom: 2.5rem;
}
#faqToast a {
    display: inline-block;
    max-width: 85%;
}

/* the cards already separate the questions */
#faqs .divider, #faqs hr {
    display: none;
}
#faqs {
    margin: 1rem auto;
    max-width: 900px;
}

@media only screen and (max-width: 450px) {
    #banner h2 {
        font-size: 2.5rem;
        padding-right: .4rem;
    }
}

/* chart of the month in the historic pages (inline svg) */
.month-chart {
    background: var(--odp-surface);
    border: 1px solid var(--odp-line);
    border-radius: var(--odp-radius);
    box-shadow: var(--odp-shadow);
    margin: 1.5rem auto;
    max-width: 1100px;
    padding: 1.2rem 1rem .8rem;
}
.month-chart svg {
    display: block;
    height: auto;
    width: 100%;
    font-variant-numeric: tabular-nums;
}
.month-chart .weekend { fill: var(--odp-surface-alt); }
.month-chart .grid { stroke: var(--odp-line); stroke-width: 1; }
.month-chart .baseline { stroke: var(--odp-ink-soft); stroke-width: 1; }
.month-chart .axis { fill: var(--odp-ink-soft); font-size: 13px; }
.month-chart .axis.y { text-anchor: end; }
.month-chart .axis.x { text-anchor: middle; }
.month-chart .axis.weekend-day { opacity: .55; }
.month-chart .fill-from { stop-color: var(--odp-accent); stop-opacity: .22; }
.month-chart .fill-to { stop-color: var(--odp-accent); stop-opacity: 0; }
.month-chart .area { fill: url(#month-chart-fill); }
.month-chart .line {
    fill: none;
    stroke: var(--odp-ink);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}
.month-chart .hit { fill: transparent; }
.month-chart .dot {
    fill: var(--odp-surface);
    stroke: var(--odp-ink);
    stroke-width: 2;
    transition: r .1s ease;
}
.month-chart .point:hover .dot { fill: var(--odp-ink); r: 6px; }
.month-chart .point.max .dot { fill: #2E7D5B; stroke: #2E7D5B; }
.month-chart .point.min .dot { fill: #C2410C; stroke: #C2410C; }
.month-chart .extreme {
    fill: var(--odp-ink);
    font-size: 14px;
    font-weight: 600;
    paint-order: stroke;
    stroke: var(--odp-surface);
    stroke-width: 4px;
}
.month-chart figcaption {
    color: var(--odp-ink-soft);
    font-size: 1.2rem;
    padding-top: .6rem;
    text-align: center;
}
.month-chart .key {
    border-radius: 50%;
    display: inline-block;
    height: 9px;
    margin: 0 .3rem 0 1.2rem;
    width: 9px;
}
.month-chart .key.max { background: #2E7D5B; }
.month-chart .key.min { background: #C2410C; }
.month-chart .key.weekend {
    background: var(--odp-surface-alt);
    border: 1px solid var(--odp-line);
    border-radius: 2px;
}
@media only screen and (max-width: 450px) {
    .month-chart { padding: .8rem .2rem .6rem; }
    .month-chart .axis { font-size: 15px; }
    .month-chart .extreme { font-size: 16px; }
}
.toast.toast-danger {
    margin-bottom: 2rem;
}

/* year and month selectors of the historic pages */
.historic-date-selector {
    display: inline-flex;
    gap: .6rem;
}
.historic-date-selector select {
    font-size: 1.9rem;
    padding: .7rem 1.2rem;
    text-align: center;
}
@media only screen and (max-width: 450px) {
    .historic-date-selector select {
        font-size: 1.7rem;
        padding: .6rem .6rem;
    }
}
