/*
Theme Name: the EDGE API Theme
Theme URI: https://example.com/the-edge
Author: BP mini site
Description: API-driven WordPress theme for the EDGE. Home, category, search, article, magazine issue and reader templates render external API content while WordPress manages categories and issues.
Version: 0.1.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: the-edge
*/

/* WordPress-specific additions. Main design CSS is enqueued from assets/css/site.css. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.edge-notice,
.edge-empty,
.edge-api-error {
  max-width: 1080px;
  margin: 48px auto;
  padding: 24px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 18px;
  background: #fff;
  color: #3c352c;
}

.edge-ad {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin: 32px auto;
  border: 1px dashed rgba(0,0,0,.22);
  color: rgba(0,0,0,.55);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-audio {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px auto 0;
  max-width: 800px;
}
.article-audio__item { flex: 1 1 280px; }
.article-audio__label { display: block; margin-bottom: 8px; font-size: 13px; color: rgba(0,0,0,.55); }
.article-audio audio { width: 100%; }

.article-video {
  max-width: 960px;
  margin: 28px auto;
}
.article-video video { width: 100%; height: auto; border-radius: 18px; background: #000; }

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 32px auto;
}
.article-gallery figure { margin: 0; }
.article-gallery img { width: 100%; height: auto; border-radius: 16px; display: block; }
.article-gallery figcaption { margin-top: 8px; font-size: 13px; color: rgba(0,0,0,.55); }

.edge-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 56px;
}
.edge-pagination a,
.edge-pagination span {
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  text-decoration: none;
}

.edge-issue-field-table { width: 100%; border-collapse: collapse; }
.edge-issue-field-table th { width: 190px; text-align: left; vertical-align: top; padding: 12px 12px 12px 0; }
.edge-issue-field-table td { padding: 8px 0; }
.edge-issue-field-table input[type='text'],
.edge-issue-field-table input[type='url'],
.edge-issue-field-table textarea,
.edge-issue-field-table select { width: 100%; max-width: 760px; }
.edge-issue-field-table textarea { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.edge-help { color: #646970; font-size: 12px; margin-top: 6px; }
