/* torportal.online — forest green + coral palette inspired by darkmarkets.store */
:root {
  --green:      #053220;
  --green-2:    #143121;
  --green-3:    #325642;
  --green-soft: #cce9dd;
  --mint:       #bde7b3;
  --coral:      #fc6034;
  --coral-soft: #ffe4d4;
  --gold:       #ffbe0b;
  --cream:      #faf7f0;
  --paper:      #ffffff;
  --line:       #e1e1e1;
  --line-2:     #eaeeed;
  --ink:        #1a171a;
  --ink-soft:   #222425;
  --muted:      #5c5d5c;
  --red:        #b01705;
  --shadow:     0 4px 16px rgba(5,50,32,.06);
  --radius:     8px;
}
*, *:before, *:after { box-sizing: border-box }
html, body { margin: 0; padding: 0 }
body { font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--cream) }
a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px }
a:hover { color: var(--green) }
code, pre { font-family: ui-monospace, Menlo, Monaco, Consolas, monospace }
img { max-width: 100% }
.container { max-width: 980px; margin: 0 auto; padding: 0 18px }

/* ---- prices ticker (top thin bar) ---- */
.prices-bar { background: var(--ink); color: var(--cream); font-size: 13px; padding: 6px 0 }
.prices-bar .inner { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; justify-content: flex-end }
.prices-bar .coins { display: flex; gap: 22px; flex-wrap: wrap }
.prices-bar .coin { display: inline-flex; gap: 7px; align-items: baseline }
.prices-bar .coin .t { color: var(--gold); font-weight: 700; letter-spacing: .04em }
.prices-bar .coin .v { color: var(--paper); font-weight: 600; font-family: ui-monospace, monospace }
.prices-bar .coin .d { font-size: 11px }
.prices-bar .coin .up   { color: var(--mint) }
.prices-bar .coin .down { color: #ffb0a0 }
.prices-bar .meta { color: #889; font-size: 11px }

/* ---- header ---- */
.topbar { background: var(--green); color: var(--cream); border-bottom: 3px solid var(--coral) }
.topbar .row { display: flex; align-items: center; gap: 18px; padding: 14px 18px }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none }
.brand:hover { color: var(--cream); text-decoration: none }
.brand img { width: 40px; height: 40px; border-radius: 6px; background: var(--paper) }
.brand-text { display: flex; flex-direction: column; line-height: 1.15 }
.brand-text .b1 { font-size: 17px; font-weight: 700 }
.brand-text .b2 { font-size: 11px; color: var(--mint); font-weight: 700; letter-spacing: .08em; text-transform: uppercase }

nav.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap }
nav.nav a { color: var(--cream); padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none }
nav.nav a:hover { background: rgba(255,255,255,.08); color: var(--cream) }
nav.nav a.on { background: var(--coral); color: var(--paper) }

/* ---- hero ---- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 48px 0 }
.hero h1 { font-size: 36px; line-height: 1.15; margin: 0 0 14px; color: var(--green); letter-spacing: -.01em }
.hero .lead { font-size: 17px; color: var(--ink-soft); max-width: 740px; margin: 0 }
.hero .meta { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--muted) }
.hero .meta b { color: var(--green); display: block; font-size: 20px }

/* ---- sections ---- */
section { padding: 44px 0 }
section.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
section h2 { font-size: 26px; margin: 28px 0 12px; color: var(--green); border-bottom: 2px solid var(--coral); display: inline-block; padding-bottom: 4px }
section h2:first-child { margin-top: 0 }
section h3 { font-size: 18px; margin: 26px 0 8px; color: var(--green-2) }
section .sub { color: var(--muted); margin: 0 0 22px; max-width: 740px; font-size: 15px }

/* ---- buttons ---- */
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none }
.btn-primary { background: var(--coral); color: var(--paper) }
.btn-primary:hover { background: #e54f29; color: var(--paper); text-decoration: none }
.btn-ghost { background: var(--paper); color: var(--green); border: 1px solid var(--green) }
.btn-ghost:hover { background: var(--green-soft); text-decoration: none }

/* ---- markets directory grid ---- */
.markets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 14px }
@media (max-width: 720px) { .markets-grid { grid-template-columns: 1fr } }
.mcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: inherit }
.mcard:hover { border-color: var(--green-3); text-decoration: none }
.mcard .lg { flex: 0 0 60px; height: 60px; background: var(--cream); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden }
.mcard .lg img { width: 56px; height: 56px; object-fit: contain }
.mcard .ct h3 { color: var(--green); font-size: 17px; margin: 0 0 4px }
.mcard .ct .tag { font-size: 11px; font-weight: 700; color: var(--coral); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px }
.mcard .ct .meta { color: var(--muted); font-size: 13px }

/* ---- market detail ---- */
.market-head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px }
.market-head .logo { width: 86px; height: 86px; background: var(--paper); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; padding: 6px; border: 1px solid var(--line) }
.market-head .logo img { max-width: 100%; max-height: 100% }
.market-head .info h1 { color: var(--green); margin: 0 0 6px; font-size: 30px }
.market-head .info .tag { display: inline-block; background: var(--coral-soft); color: var(--coral); font-size: 11px; padding: 3px 9px; border-radius: 4px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase }
.market-head .info .facts { color: var(--muted); font-size: 14px; margin-top: 8px }
.market-head .info .facts b { color: var(--green) }

.access { background: var(--green-soft); border-left: 4px solid var(--green); padding: 18px 22px; border-radius: 0 6px 6px 0; margin: 14px 0 22px }
.access .label { font-size: 11px; color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px }
.access .url { font-family: ui-monospace, Menlo, monospace; font-size: 14px; word-break: break-all; background: var(--paper); padding: 12px 14px; border-radius: 4px; border: 1px dashed var(--green-3); margin-bottom: 12px }
.access .btns { display: flex; gap: 8px; flex-wrap: wrap }

.mirrors-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px }
.mirrors-list .row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 14px }
.mirrors-list .row:last-child { border-bottom: 0 }
.mirrors-list .row .n { background: var(--green); color: var(--cream); font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 3px; min-width: 32px; text-align: center }
.mirrors-list .row .l { flex: 1; font-family: ui-monospace, monospace; word-break: break-all }
.mirrors-list .row .l a { color: var(--ink) }
.mirrors-list .row .l a:hover { color: var(--coral) }

/* ---- news ---- */
.news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 14px }
@media (max-width: 880px) { .news-grid { grid-template-columns: 1fr 1fr } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr } }
.ncard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); text-decoration: none; color: inherit }
.ncard:hover { border-color: var(--coral); text-decoration: none }
.ncard .img { background: var(--cream); aspect-ratio: 16 / 9; overflow: hidden }
.ncard .img img { width: 100%; height: 100%; object-fit: cover; display: block }
.ncard .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column }
.ncard .src { font-size: 11px; color: var(--coral); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px }
.ncard h3 { color: var(--green); font-size: 16px; margin: 0 0 8px; line-height: 1.3 }
.ncard .sm { color: var(--muted); font-size: 13px; flex: 1 }
.ncard .when { color: var(--muted); font-size: 12px; margin-top: 10px }

.news-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; margin-top: 10px }
.news-list .item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2) }
.news-list .item:last-child { border-bottom: 0 }
.news-list .item .img { flex: 0 0 160px; height: 100px; background: var(--cream); border-radius: 4px; overflow: hidden }
.news-list .item .img img { width: 100%; height: 100%; object-fit: cover }
.news-list .item .info h3 { margin: 0 0 5px; font-size: 17px }
.news-list .item .info h3 a { color: var(--green); text-decoration: none }
.news-list .item .info h3 a:hover { color: var(--coral); text-decoration: underline }
.news-list .item .info .meta { color: var(--muted); font-size: 12px; margin-bottom: 6px }
.news-list .item .info .sm { color: var(--ink-soft); font-size: 14px }

/* ---- single news article ---- */
article.news-article h1 { color: var(--green); font-size: 30px; line-height: 1.2; margin: 0 0 6px }
article.news-article .meta { color: var(--muted); font-size: 13px; margin-bottom: 22px }
article.news-article .meta a { color: var(--coral); font-weight: 600 }
article.news-article .hero-img { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; background: var(--cream); border: 1px solid var(--line) }
article.news-article .hero-img img { width: 100%; display: block }
article.news-article .body { font-size: 17px; line-height: 1.7; color: var(--ink-soft) }
article.news-article .body p { margin: 0 0 16px }
article.news-article .body h3, article.news-article .body h4 { color: var(--green); margin: 24px 0 8px }
article.news-article .body ul, article.news-article .body ol { padding-left: 28px; margin: 0 0 16px }
article.news-article .body a { color: var(--coral) }
article.news-article .body blockquote { border-left: 4px solid var(--green-soft); padding: 4px 18px; margin: 0 0 16px; color: var(--green-2); background: var(--cream) }

/* ---- pagination ---- */
.pagi { display: flex; gap: 8px; justify-content: center; margin: 26px 0 0; flex-wrap: wrap }
.pagi a, .pagi span { padding: 7px 13px; border-radius: 4px; font-size: 14px; text-decoration: none }
.pagi a { background: var(--paper); color: var(--green); border: 1px solid var(--line) }
.pagi a:hover { background: var(--green-soft) }
.pagi .cur { background: var(--green); color: var(--cream); font-weight: 700 }

/* ---- footer ---- */
footer { background: var(--green); color: var(--cream); padding: 30px 0; margin-top: 30px }
footer p { margin: 0 0 10px; color: var(--mint) }
footer a { color: var(--cream) }
footer a:hover { color: var(--gold) }
footer small { color: var(--green-soft) }

/* related stories on news article */
.related { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 22px }
.related h3 { color: var(--green); font-size: 20px; margin: 0 0 14px; border-left: 4px solid var(--coral); padding-left: 12px }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr } }
.rel-card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 10px; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink) }
.rel-card:hover { border-color: var(--coral); text-decoration: none }
.rel-card .ri { flex: 0 0 80px; height: 56px; background: var(--cream); border-radius: 4px; overflow: hidden }
.rel-card .ri img { width: 100%; height: 100%; object-fit: cover }
.rel-card .rt { flex: 1; font-size: 14px; line-height: 1.35; color: var(--green); font-weight: 600 }

/* /markets/compare table */
table.cmp { width: 100%; border-collapse: collapse; background: var(--paper); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; margin: 10px 0 18px }
table.cmp th, table.cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 14px }
table.cmp th { background: var(--green); color: var(--cream); font-weight: 700; letter-spacing: .03em; text-transform: uppercase; font-size: 12px }
table.cmp tr:last-child td { border-bottom: 0 }
table.cmp tbody tr:hover td { background: var(--cream) }
table.cmp td.name { font-weight: 700; font-size: 15px; color: var(--green) }
table.cmp td.name a { color: var(--green); text-decoration: none }
table.cmp td.name a:hover { color: var(--coral); text-decoration: underline }
