/* blocks.draftsperson.net - single stylesheet.
   Look inspired by the original Magazine Pro theme: teal #008285 accents,
   light content on white, right sidebar, 3-column dark footer. */

:root {
  --teal: #008285;
  --teal-dark: #026466;
  --ink: #222;
  --muted: #666;
  --line: #e3e3e3;
  --bg: #f5f5f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.ta-right { text-align: right; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 4px solid var(--teal); }
.header-wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.site-title { margin: 6px 0 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.site-description { margin: 0; color: var(--muted); font-size: 14px; }
.header-extra { color: var(--teal); font-size: 18px; }

/* ---------- layout ---------- */
.site-inner { display: flex; gap: 36px; padding-top: 32px; padding-bottom: 48px; align-items: flex-start; }
.content { flex: 1 1 auto; min-width: 0; background: #fff; padding: 28px 32px; border: 1px solid var(--line); }
.sidebar { flex: 0 0 300px; }

/* ---------- entries ---------- */
.entry-title, .archive-title, .entry-content h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; }
.entry-meta, .archive-count { color: var(--muted); font-size: 14px; }
.entry-content h2, .section-label { font-size: 21px; margin-top: 32px; }
.entry-content figure { margin: 24px auto; text-align: center; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* ---------- download page ---------- */
.download-layout { display: flex; gap: 28px; margin: 20px 0; flex-wrap: wrap; }
.download-preview { flex: 1 1 380px; min-width: 260px; border: 1px solid var(--line); padding: 8px; background: #fff; text-align: center; }
.download-details { flex: 1 1 260px; min-width: 240px; }
.detail-list { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 4px; }
.detail-list li { display: flex; justify-content: space-between; flex-direction: row-reverse; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.detail-list li:last-child { border-bottom: 0; }
.detail-list .badge { background: var(--teal); color: #fff; border-radius: 10px; padding: 1px 10px; font-size: 13px; align-self: center; }
.download-button {
  display: inline-block; background: var(--teal); color: #fff; font-weight: 700;
  padding: 12px 34px; border-radius: 4px; font-size: 17px; letter-spacing: .3px;
}
.download-button:hover { background: var(--teal-dark); color: #fff; text-decoration: none; }
.download-button.small { padding: 5px 16px; font-size: 14px; }
.no-file { color: #a33; }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th, .file-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.spec-table th { width: 160px; font-weight: 600; color: var(--muted); }
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.breadcrumbs .sep { color: var(--line); }
.breadcrumbs .current { color: var(--muted); }
.file-thumb-cell { width: 90px; }
.file-thumb { max-height: 64px; max-width: 80px; border: 1px solid var(--line); background: #fff; } /* per-file preview thumbnails on multi-file download pages */

/* ---------- card grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin: 22px 0; }
.card { display: block; border: 1px solid var(--line); background: #fff; padding: 10px; text-align: center; color: var(--ink); }
.card:hover { border-color: var(--teal); text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.card-thumb { display: block; height: 150px; margin-bottom: 8px; }
.card-thumb img { max-height: 150px; width: auto; max-width: 100%; }
.card-title { font-size: 15px; font-weight: 600; color: var(--teal); }

/* ---------- archives ---------- */
.archive-header { border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 10px; }
.subcat-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.subcat-list li a { display: inline-block; background: #eef6f6; border: 1px solid var(--teal); border-radius: 14px; padding: 3px 14px; font-size: 14px; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 26px 0 6px; }
.pagination a, .pagination .current, .pagination .gap { padding: 6px 12px; border: 1px solid var(--line); font-size: 14px; }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }
.pagination .gap { border: 0; }

/* ---------- latest-pages table ---------- */
.table-filter { width: 100%; padding: 10px 14px; font-size: 16px; margin: 14px 0; border: 1px solid var(--line); border-radius: 4px; }
.all-blocks { width: 100%; border-collapse: collapse; font-size: 15px; }
.all-blocks th, .all-blocks td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.all-blocks th { background: var(--teal); color: #fff; }

/* ---------- sidebar ---------- */
.widget { background: #fff; border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 22px; font-size: 15px; }
.widget-title { margin: 0 0 10px; font-size: 17px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink); }
.bmc-link { display: inline-block; background: #FFDD00; color: #000; font-weight: 700; padding: 7px 16px; border-radius: 6px; }
.bmc-link:hover { color: #000; text-decoration: none; }
.cat-list { list-style: none; padding-left: 0; margin: 0; }
.cat-list ul { list-style: none; padding-left: 16px; }
.cat-list li { padding: 2px 0; }
.search-form { display: flex; gap: 6px; }
.search-form.big { max-width: 480px; margin: 18px 0; }
.search-input { flex: 1 1 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; min-width: 0; }
.search-submit { background: var(--teal); color: #fff; border: 0; border-radius: 4px; padding: 8px 16px; font-size: 15px; cursor: pointer; }
.search-submit:hover { background: var(--teal-dark); }

/* ---------- footer ---------- */
.footer-widgets { background: #2b2b2b; color: #ccc; font-size: 14px; }
.footer-cols { display: flex; gap: 36px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.footer-col { flex: 1 1 260px; }
.footer-widgets a { color: #7fd4d6; }
.site-footer { background: #222; color: #999; font-size: 13px; text-align: center; padding: 14px 0; }
.site-footer a { color: #7fd4d6; }
.site-footer .footer-nav { margin-bottom: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .site-inner { flex-direction: column; }
  .sidebar { flex: 1 1 auto; width: 100%; }
  .content { padding: 20px 16px; }
}
