/* oilapi.net: a country's prices, /prices/<country>. */
.cp { padding-bottom: 72px; }
.cp-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FBFAF7 0%, var(--page) 100%); border-bottom: 1px solid var(--line); }
.cp-mesh { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; }
.cp-mesh svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.drift { fill: none; stroke-width: 1.4; stroke-dasharray: 6 10; animation: drift 26s linear infinite; }
.drift.a { stroke: var(--champagne); opacity: .55; }
.drift.b { stroke: var(--slate); opacity: .35; animation-duration: 34s; }
.drift.c { stroke: var(--deep); opacity: .18; animation-duration: 42s; animation-direction: reverse; }
@keyframes drift { to { stroke-dashoffset: -480; } }
.cp-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 26px 28px 44px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--slate); }
.crumbs a:hover { color: var(--brass); }
.crumbs .here { color: var(--ink); }
.cp-sec .sub a, .tbl td a { color: var(--brass); }
.cp-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; margin-top: 22px; }
.hero-kw { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.flag { font-size: 11px; letter-spacing: .06em; color: var(--deep); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.hero-title { display: block; margin-top: 14px; font-size: 38px; line-height: 1.18; font-weight: 300; color: var(--midnight); letter-spacing: -.015em; }
.hero-title em { font-style: normal; color: var(--brass); font-variant-numeric: tabular-nums; transition: color .6s; }
.hero-title em.flash { color: var(--up); }
.sub { margin: 14px 0 0; max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.facts > span { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); font-size: 13px; color: var(--ink); white-space: nowrap; }
.dotc { width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(127, 181, 154, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(127, 181, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 181, 154, 0); } }
.ctas { display: grid; grid-template-columns: 200px 200px; gap: 10px; margin-top: 24px; }
.ctas .btn { height: 44px; font: inherit; font-size: 14px; cursor: pointer; }
.feed { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 28px rgba(14, 26, 43, .06); overflow: hidden; }
.feed-head { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.pulse { color: #2F6B4F; }
.feed ul { list-style: none; margin: 0; padding: 0; }
.feed ul.fixed { height: 290px; overflow: hidden; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); animation: drop .5s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
.feed .w { font-size: 13.5px; color: var(--midnight); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .p { text-align: right; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.feed .m { font-size: 12px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .c { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.up { color: #4F8F72; }
.dn { color: #B07A6C; }

.cp-sec { max-width: 1240px; margin: 0 auto; padding: 40px 28px 0; }
.cp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1240px; margin: 0 auto; }
.cp-two .cp-sec { max-width: none; margin: 0; width: 100%; }
.cp-two .cp-sec + .cp-sec { padding-left: 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; min-height: 34px; }
.sec-head h2 { margin: 0; font-size: 20px; font-weight: 400; color: var(--midnight); }
.hint { font-size: 13px; color: var(--muted); }
a.hint { color: var(--brass); }
.ctrl { display: flex; gap: 10px; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 3px; }
.seg button { min-width: 72px; height: 28px; padding: 0 12px; font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--page); color: var(--midnight); box-shadow: inset 0 0 0 1px var(--line); }
.pick { height: 36px; min-width: 190px; padding: 0 10px; font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tiles.n1, .tiles.n2 { grid-template-columns: repeat(4, 1fr); }
.tiles.n3 { grid-template-columns: repeat(3, 1fr); }
.tiles.n4 { grid-template-columns: repeat(4, 1fr); }
.tiles.n5 { grid-template-columns: repeat(5, 1fr); }
.tile { display: grid; grid-template-rows: auto auto auto auto 1fr; gap: 4px; padding: 14px 16px; min-height: 160px; }
.tile .f { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tile .v { font-size: 26px; font-weight: 300; color: var(--midnight); font-variant-numeric: tabular-nums; }
.tile .ch, .tile .note { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .note { color: var(--slate); }
.tile svg { align-self: end; width: 100%; height: 36px; }

.chart { padding: 16px 18px 12px; }
.chart svg { width: 100%; height: 260px; display: block; }
.chart-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 8px; }
.chart-meta span { font-size: 12.5px; color: var(--muted); }
.chart-meta span i { display: block; font-style: normal; font-size: 18px; color: var(--midnight); font-variant-numeric: tabular-nums; }
.chart-foot { margin-top: 6px; font-size: 12px; color: var(--slate); }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; background: var(--card); text-align: left; font-weight: 400; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl tbody tr:hover { background: #FBFAF7; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .n { width: 36px; color: var(--slate); font-variant-numeric: tabular-nums; }
.tbl .brand { display: flex; align-items: center; gap: 10px; }
.tbl .logo { width: 26px; height: 26px; border-radius: 7px; background: var(--page); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: var(--deep); flex: none; }
.tbl .addr { display: block; font-size: 12px; color: var(--slate); }
.tbl .px { font-size: 15px; color: var(--midnight); }
.tbl .actcol { width: 216px; }
.tbl .actcol div { display: grid; grid-template-columns: 88px 88px; gap: 8px; justify-content: end; }
.tbl .actcol a { height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; color: var(--ink); }
.tbl .actcol a:hover { border-color: var(--champagne); color: var(--brass); }
.chip { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; background: #EEF1F5; color: var(--deep); }
.chip.fresh { background: #E4F1EA; color: #2F6B4F; }
.tbl.compact td { padding: 9px 14px; }
.bar-col { width: 34%; }
.cp-meter { height: 8px; border-radius: 4px; background: #E9E4D8; overflow: hidden; }
.cp-meter i { display: block; height: 100%; background: var(--champagne); border-radius: 4px; }
.cp-meter.me i { background: var(--deep); }
.tbl tr.me td { color: var(--midnight); background: #FBFAF7; }

.holds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hold { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 16px; min-height: 170px; }
.hold .ico-t { font-size: 12.5px; color: var(--muted); }
.hold .big { font-size: 24px; font-weight: 300; color: var(--midnight); }
.hold .d { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hold .foot { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink); padding-top: 10px; border-top: 1px solid var(--line); }
.hold.off .big { color: var(--slate); }
.ok { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.tick { width: 12px; height: 12px; background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%237FB59A' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

.api { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.call { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 16px; }
.call .t { color: var(--midnight); }
.call a { font: 12.5px ui-monospace, Consolas, Menlo, monospace; color: var(--brass); }
.cp pre.code { margin: 0; padding: 14px 16px; overflow-x: auto; background: #0E1A2B; color: #DCE3EC; border-radius: var(--r); font: 12.5px/1.6 ui-monospace, Consolas, Menlo, monospace; }

.faq2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.faq2 details { border-top: 1px solid var(--line); padding: 13px 0; }
.faq2 summary { cursor: pointer; color: var(--midnight); font-size: 14.5px; }
.faq2 p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 1100px) {
  .tiles, .tiles.n4, .tiles.n5 { grid-template-columns: repeat(3, 1fr); }
  .cp-top { grid-template-columns: 1fr; }
  .holds { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .cp-in, .cp-sec { padding-left: 16px; padding-right: 16px; }
  .cp-two { grid-template-columns: minmax(0, 1fr); }
  .cp-two .card, .cp-sec > .card { overflow-x: auto; }
  .tbl.compact .bar-col, .tbl.compact td:last-child { display: none; }
  .cp-two .cp-sec + .cp-sec { padding-left: 16px; }
  .hero-title { font-size: 28px; }
  .ctas { grid-template-columns: 1fr 1fr; }
  .tiles, .tiles.n1, .tiles.n2, .tiles.n3, .tiles.n4, .tiles.n5, .holds { grid-template-columns: 1fr 1fr; }
  .api, .faq2 { grid-template-columns: 1fr; }
  .sec-head { flex-wrap: wrap; }
  .ctrl { flex-wrap: wrap; width: 100%; }
  .seg { width: 100%; }
  .seg button { min-width: 0; }
  .pick { width: 100%; }
  .chart-meta { grid-template-columns: 1fr 1fr; }
}
