/* qurq001.php only (2026-10-23): news detail in the home look (base: index.css + home_theme.css + home_form.css).
   Card heading = date + category chip + title, readable body, attachment list, back buttons as pills. */
#content > .container:has(.nd){ padding-top: 0; }
.minfo{ margin: 0; max-width: none; color: var(--hc-fg); }
.nd-head{ margin: 0 -28px 20px; padding: 20px 28px 18px; background: linear-gradient(120deg, #cddcf6 0%, var(--hc-surface) 100%); border-bottom: 3px solid var(--hc-brand); border-radius: 14px 14px 0 0; }
.nd-meta{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.nd-meta time{ font-size: .9rem; color: var(--hc-muted); font-variant-numeric: tabular-nums; }
.nd-title{ margin: 0; font-size: 1.45rem; line-height: 1.45; font-weight: bold; color: var(--hc-brand); }
.nd-body{ font-size: 1rem; line-height: 1.85; color: var(--hc-fg); overflow-wrap: anywhere; }
.nd-body img{ max-width: 100%; height: auto; }

/* attachments */
.nd-files{ display: grid; gap: 8px; margin: 22px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--hc-line); }
.nd-files:not(:has(li)){ display: none; }
.nd-file{ float: none; }
/* 2026-10-29 list items inside the news body are floated by the site-wide li rule: unfloat them and clear before the attachment list (else .nd-files is squeezed to 0 width beside the floats) */
.nd-body li{ float: none; }
.nd-files{ clear: both; }
.nd-file a{ display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--hc-line); border-radius: 10px; background: #f7faff; color: var(--hc-fg); text-decoration: none; transition: background .15s, border-color .15s; }
.nd-file a:hover{ background: var(--hc-soft); border-color: #b6cde6; }
.nd-ext{ flex: none; min-width: 3.2em; padding: 2px 8px; border-radius: 6px; background: var(--hc-brand); color: #fff; font-size: .78rem; font-weight: bold; text-align: center; letter-spacing: .04em; }
.nd-fname{ min-width: 0; font-weight: bold; }

/* back buttons (exp_readmore: a.q1-back / a.q1-back-cat) */
.nd-nav{ display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.nd-nav a.q1-back{ display: inline-block; padding: 7px 22px; border: 1px solid #b6cde6; border-radius: 999px; background: #fff; color: var(--hc-brand); font-weight: bold; text-decoration: none; white-space: nowrap; }
.nd-nav a.q1-back:hover{ background: var(--hc-soft); }
.nd-nav a.q1-back-cat{ background: var(--hc-brand); border-color: var(--hc-brand); color: #fff; }
.nd-nav a.q1-back-cat:hover{ background: var(--hc-c-gr); border-color: var(--hc-c-gr); }

@media (max-width: 600px){
	.nd-head{ margin: 0 -16px 16px; padding: 16px; }
	.nd-title{ font-size: 1.2rem; }
}
