/* Címlapok: the topic pages' interest box (Férfi témák, Női témák: assets/js/topics.js); the news uses magazine.css. */
.mt-box{margin:14px 0 4px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface)}
.mt-box:empty{min-height:150px}
.mt-head{display:flex; align-items:center; gap:6px 14px; flex-wrap:wrap; margin-bottom:12px}
.mt-title{margin:0; font:600 20px/1.2 var(--serif)}
.mt-note{margin:0; flex:1 1 220px; font-size:14px; color:var(--muted)}
.mt-quick{display:flex; gap:6px; margin-left:auto}
.mt-quick .btn{height:32px; padding:0 12px; font-size:13px}
.mt-quick .btn[disabled]{opacity:.45; cursor:default}

.mt-topics{display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px}
.mt-topic{position:relative; display:flex; align-items:center; gap:10px; padding:10px 38px 10px 10px; min-height:58px;
  border:1px solid var(--line); border-radius:12px; background:var(--bg); cursor:pointer; user-select:none;
  transition:border-color .15s, background-color .15s}
.mt-topic:hover{border-color:var(--muted)}
.mt-topic input{position:absolute; opacity:0; width:1px; height:1px; pointer-events:none}
.mt-topic:has(input:focus-visible){outline:2px solid var(--accent); outline-offset:2px}
.mt-icon{flex:none; width:36px; height:36px; display:grid; place-items:center; font-size:20px; border-radius:10px; background:var(--surface)}
.mt-text{flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px}
.mt-label{font:600 15px/1.2 var(--sans); overflow-wrap:break-word; hyphens:auto}
.mt-hint{font-size:12px; line-height:1.3; color:var(--muted); overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical}
/* the tick box on the right */
.mt-check{position:absolute; right:10px; top:50%; width:20px; height:20px; margin-top:-10px; border:2px solid var(--line); border-radius:6px; background:var(--surface)}
.mt-topic.on{border-color:var(--accent); background:color-mix(in srgb, var(--accent) 8%, var(--bg))}
.mt-topic.on .mt-check{border-color:var(--accent); background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
.mt-topic:not(.on) .mt-icon{filter:grayscale(1); opacity:.6}

@media (max-width:1040px){ .mt-topics{grid-template-columns:repeat(2, minmax(0, 1fr))} }
/* folded (phones, a saved choice): one line and a button */
.mt-folded{display:flex; align-items:center; gap:10px}
.mt-summary{margin:0; flex:1; min-width:0; font-size:14px; line-height:1.4}
.mt-folded .btn{flex:none; height:36px}
@media (max-width:520px){
  .mt-box{padding:12px}
  .mt-title{font-size:18px}
  .mt-note{order:3; flex-basis:100%; font-size:13px}
  .mt-topics{grid-template-columns:repeat(2, minmax(0, 1fr)); gap:6px}
  .mt-topic{padding:8px 28px 8px 8px; gap:7px; min-height:52px}
  .mt-icon{width:28px; height:28px; font-size:16px}
  .mt-hint{display:none}
  .mt-label{font-size:14px}
  .mt-check{right:8px; width:18px; height:18px; margin-top:-9px}
}
/* very narrow screens (or large text): one topic per row */
@media (max-width:340px){ .mt-topics{grid-template-columns:minmax(0, 1fr)} }
