/* Shared parts of the redesigned inner pages (canvas "Website" page, web/site.css): page head, tables, tabs, steps, forms, reading pages, timeline.
   Page-specific styles live in css/p3/<page>.css, always nested in .v3 .p-<page> so pages never touch each other. */
.v3 {
  .page { min-height: 60vh; }
  .card.hi { background: linear-gradient(180deg, #221b12, #17130d); border-color: #5a4730; }
  .well { background: var(--bg0); border: 1px solid var(--line); border-radius: 10px; }
  .div { height: 1px; background: var(--line); }
  .fr > .c.b { right: 7px; top: 7px; border-width: 1px 1px 0 0; }
  .fr > .c.e { left: 7px; bottom: 7px; border-width: 0 0 1px 1px; }

  /* the page head on top of art */
  .phero .now { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 12px 16px; border-radius: 12px; background: rgba(10, 8, 6, .78); border: 1px solid #5a4730; width: max-content; max-width: min(680px, 100%); font-size: 15px; color: var(--tx2); }
  .phero .now b { color: var(--tx); font-weight: 600; }
  .phero .now .lbl { white-space: nowrap; font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; color: var(--gold); text-transform: uppercase; }
  .phero .crumb a:hover { color: var(--gold2); }

  /* three steps in one strip */
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .steps .st { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-right: 1px solid var(--line); }
  .steps .st:last-child { border-right: 0; }
  .steps .h3 { font-size: 16.5px; }
  .steps .p { font-size: 14.5px; }

  /* table */
  .tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
  .tbl th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--tx3); padding: 0 14px 12px; white-space: nowrap; }
  .tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
  .tbl .r { text-align: right; }
  .tblwrap { overflow-x: auto; }

  /* segmented tabs */
  .seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg0); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg > button, .seg > a, .seg > span { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--tx3); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 7px; white-space: nowrap; flex: none; }
  .seg > button:hover, .seg > a:hover { color: var(--tx2); }
  .seg .on, .seg [aria-selected="true"] { background: var(--bg4); color: var(--gold2); box-shadow: inset 0 0 0 1px #6b5636; }

  /* forms */
  .fld { display: flex; flex-direction: column; gap: 7px; }
  .fld label { font-size: 14px; font-weight: 600; color: var(--tx); }
  .fld .inp, .fld input, .fld select, .fld textarea { height: 50px; border-radius: 12px; background: var(--bg0); border: 1px solid var(--line2); display: flex; align-items: center; padding: 0 16px; font: inherit; font-size: 15px; color: var(--tx); width: 100%; outline: none; }
  .fld textarea { height: auto; min-height: 110px; padding: 12px 16px; resize: vertical; }
  .fld input:focus, .fld select:focus, .fld textarea:focus { border-color: #c9a96a; box-shadow: 0 0 0 3px rgba(201, 169, 106, .18); }
  .fld input::placeholder, .fld textarea::placeholder { color: #6f6450; }
  .fld .hint { font-size: 13px; color: var(--tx3); }
  .fld .hint.ok { color: #a8c99a; }
  .fld .hint.bad { color: var(--miss); }
  .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tx2); cursor: pointer; }
  .check input { width: 20px; height: 20px; accent-color: #c9a96a; flex: none; margin: 0; }
  .formmsg { padding: 12px 16px; border-radius: 12px; font-size: 14px; background: var(--missbg); color: var(--miss); border: 1px solid #7a5232; }
  .formmsg.ok { background: var(--okbg); color: var(--ok); border-color: var(--okln); }

  /* picture beside a form (sign in, register, forgot) */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 760px; }
  .split .art { position: relative; overflow: hidden; }
  .split .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .split .art .shd { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 13, 10, 0) 55%, #0f0d0a 100%), linear-gradient(0deg, rgba(15, 13, 10, .85) 0%, rgba(15, 13, 10, 0) 45%); }
  .split .art .cap { position: absolute; left: 48px; bottom: 44px; right: 120px; z-index: 2; display: flex; flex-direction: column; gap: 10px; }
  .split .form { display: flex; flex-direction: column; justify-content: center; padding: 60px 110px 60px 80px; gap: 18px; max-width: 720px; }

  /* reading pages (rules, terms, privacy) */
  .toc { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
  .toc a { padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--tx2); }
  .toc a:hover { color: var(--tx); }
  .toc a.on { background: var(--bg4); color: var(--gold2); }
  .read h3 { font-size: 21px; font-weight: 600; margin: 34px 0 10px; display: flex; align-items: center; gap: 12px; }
  .read p, .read li { font-size: 16px; color: var(--tx2); line-height: 1.7; }
  .read ul { margin: 0; padding-left: 20px; }
  .inshort { padding: 20px 24px; border-radius: 14px; background: linear-gradient(180deg, #221b12, #17130d); border: 1px solid #5a4730; }

  /* timeline */
  .tline { position: relative; padding-left: 34px; }
  .tline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#8a6d3b, #2a2218); }
  .tline .tp { position: relative; padding-bottom: 26px; }
  .tline .tp::before { content: ""; position: absolute; left: -31px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #16120d; border: 2px solid #c9a96a; }

  /* small parts */
  .pring { --p: 50; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(#c9a96a calc(var(--p) * 1%), #2a2218 0); display: flex; align-items: center; justify-content: center; flex: none; }
  .pring > span { width: 50px; height: 50px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
  .tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
  .lnk { font-size: 14.5px; font-weight: 600; color: var(--gold2); }
  .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #2a2117; color: #e6cb92; box-shadow: 0 0 0 1px #4a3b29; }
  .one { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .center { text-align: center; }
  .pager { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
}
@media (max-width: 1100px) {
  .v3 {
    .split { grid-template-columns: minmax(0, 1fr); }
    .split .art { min-height: 260px; }
    .split .form { padding: 36px var(--pad); max-width: none; }
  }
}
@media (max-width: 720px) {
  .v3 {
    .phero { height: auto !important; min-height: 340px; }
    .phero .in { padding: 60px 0 40px; }
    .phero .now { width: auto; flex-wrap: wrap; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .steps .st { border-right: 0; border-bottom: 1px solid var(--line); }
    .split .art .cap { left: 20px; right: 20px; bottom: 20px; }
  }
}
