/* column list and column post pages. Loaded after common.css. */

/* ===== card (list and related block): product photo on the left, category, title, date, shop ===== */
.cl-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cl-list[hidden]{display:none}
.cl-card{display:flex;border-radius:6px;border:3px solid transparent;background:linear-gradient(#fff,#fff) padding-box,var(--gold-grad) border-box;box-shadow:0 14px 30px -18px rgba(18,20,46,.25);overflow:hidden;transition:transform .2s}
.cl-card:hover{transform:translateY(-3px)}
.cl-card[hidden]{display:none}
.cl-thumb{flex:none;width:136px;min-height:136px;background:var(--paper-2)}
.cl-thumb img{width:100%;height:100%;object-fit:cover}
.cl-body{display:flex;flex-direction:column;flex:1;min-width:0;padding:14px 16px 12px}
.cl-meta{display:flex;align-items:center;gap:8px}
.cl-meta .lab{background:var(--navy);color:#fff;font-size:11.5px;font-weight:700;letter-spacing:.06em;line-height:1;padding:6px 10px}
.cl-meta .new{font-family:var(--en);font-size:10.5px;font-weight:800;letter-spacing:.12em;line-height:1.5;color:var(--accent);border:1px solid currentColor;padding:1px 6px}
.cl-card h2,.cl-card h3{margin-top:8px;font-size:15px;font-weight:700;line-height:1.6;color:var(--navy);text-wrap:pretty;word-break:auto-phrase}
/* titles come from the CMS: break them between phrases, not inside a word */
.post-head h1,#list .head p{word-break:auto-phrase}
.cl-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:10px;font-size:11.5px;line-height:1.5}
.cl-foot time{font-family:var(--en);font-weight:600;letter-spacing:.06em;color:var(--muted)}
.cl-foot b{color:var(--accent);font-weight:700;letter-spacing:.04em}
.cl-foot b::before{content:"";display:inline-block;width:5px;height:5px;background:var(--accent);margin-right:5px;vertical-align:middle}

/* ===== post: product photo, table of contents ===== */
.cl-visual{margin-bottom:26px;border-radius:6px;overflow:hidden;border:3px solid transparent;background:var(--paper-2) padding-box,var(--gold-grad) border-box}
.cl-visual img{width:100%;aspect-ratio:16/9;object-fit:cover}
.post-toc{margin-bottom:30px;padding:18px 22px 20px;background:#fff;border:1px solid var(--line);border-left:5px solid var(--navy);border-radius:4px}
.post-toc p{font-size:14px;font-weight:900;letter-spacing:.14em;color:var(--navy)}
.post-toc ol{display:grid;gap:6px;margin-top:10px;padding-left:1.5em;list-style:decimal;font-size:14.5px;font-weight:700;line-height:1.7;color:var(--navy)}
.post-toc a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}
/* a link of the table of contents stops below the fixed header */
.post-body h2{scroll-margin-top:150px}
.cl-links{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 18px;margin-top:28px}
/* the price table of a column (ISSUE-150 step 6): fixed on the day it was made, which the caption says */
.cl-prices caption{caption-side:top;text-align:left;padding:0 0 8px;font-size:15px;font-weight:900;color:var(--navy)}
.cl-prices table{background:#fff}
.cl-prices th{width:45%}
.cl-prices td{font-weight:700;color:var(--navy);text-align:right;white-space:nowrap}
.cl-prices .note{margin-top:8px;font-size:13px;line-height:1.7;color:var(--muted)}

@media (max-width:1100px){
  /* one column: the post title and the list heading come before the market-rate block of the sidebar (order 2 in common.css) */
  #list,#article{order:1}
}
@media (max-width:900px){
  .cl-list{grid-template-columns:1fr;gap:12px}
  .cl-thumb{width:108px;min-height:108px}
  .cl-body{padding:10px 12px 10px}
  .cl-card h2,.cl-card h3{font-size:14.5px}
  .cl-visual{margin-bottom:20px}
  .post-toc{margin-bottom:24px;padding:14px 16px 16px}
  .post-toc ol{font-size:14px}
  .post-body h2{scroll-margin-top:80px}
  /* the price table: the name over its amount, so a long product name is not squeezed beside the amount */
  .cl-prices tr{display:grid}
  .cl-prices th{width:auto;border-bottom:0;padding:8px 12px 2px}
  .cl-prices td{border-top:0;padding:2px 12px 8px}
  .cl-links{flex-direction:column}
  .cl-links .btn-navy{width:100%;min-width:0}
}
