/*
 * hubs.css — the internal-linking pieces: breadcrumbs, linked topic chips,
 * the topic hub pages (poem_category.php), the contest winners page and the
 * story reader. Built on home.css's .pvh-* variables and panels.
 *
 * Linked from poetry.php, read_poetry.php and includes/hub_top.inc.php.
 * Bump the ?v= on those links when this file changes (one-year CSS cache).
 */

/* ---- Breadcrumbs -------------------------------------------------------- */
.pv-crumbs { margin: 0 0 10px; font-size: 12px; color: #9a9a9a; }
.pv-crumbs a { color: #d3b06b; text-decoration: none; }
.pv-crumbs a:hover { color: #ffcc2f; text-decoration: underline; }
.pv-crumbs span[aria-current] { color: #bdbdbd; }

/* ---- Topic chips that link ---------------------------------------------- */
a.pvl-cat, a.pvr-chip, a.pv-topic-chip {
  text-decoration: none;
  border: 1px solid currentColor;
}
a.pvl-cat:hover, a.pvr-chip:hover, a.pv-topic-chip:hover { text-decoration: underline; }
.pvl-cat { margin-right: 6px; }

/* ---- Topic hub ---------------------------------------------------------- */
.pvt-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.pvt-topic {
  padding: 14px 16px;
  border: 1px solid #333;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}
.pvt-topic h3 { margin: 0 0 4px; font-size: 17px; }
.pvt-topic h3 a { color: #fff; text-decoration: none; }
.pvt-topic h3 a:hover { color: #ffcc2f; }
.pvt-topic ul { margin: 8px 0 0; padding: 0 0 0 16px; font-size: 13px; line-height: 1.5; }
.pvt-topic li a { color: #e6e6e6; }
.pvt-topic .pvh-more { display: inline-block; margin-top: 8px; font-size: 12px; }

.pvt-other { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.pvt-other a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid #3a3a3a;
  border-radius: 14px;
  color: #e6e6e6;
  font-size: 12px;
  text-decoration: none;
}
.pvt-other a:hover { border-color: #d3b06b; color: #ffcc2f; }

.pvt-top { margin: 8px 0 0; padding: 0 0 0 22px; line-height: 1.6; }
.pvt-top li { margin: 0 0 6px; }
.pvt-top a { color: #fff; font-weight: 700; }
.pvt-top .pvh-muted { margin-left: 6px; }

/* ---- Contest winners ---------------------------------------------------- */
.pvw-months { margin: 10px 0 0; padding: 0; list-style: none; }
.pvw-months li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
}
.pvw-months__month { min-width: 130px; color: #d3b06b; font-weight: 700; }
.pvw-months__poem { color: #fff; font-weight: 700; }

/* ---- Story reader ------------------------------------------------------- */
.pvs-story { font-size: 16px; line-height: 1.75; color: #f2f2f2; }
.pvs-story p { margin: 0 0 1em; }
.pvs-more { margin: 8px 0 0; padding: 0 0 0 18px; line-height: 1.7; }

/* ---- Phones ------------------------------------------------------------- */
@media (max-width: 760px) {
  #pv-hub #site-wrapper,
  #pv-hub #top-wrapper,
  #pv-hub #middle-wrapper,
  #pv-hub #left-col,
  #pv-hub #right-col,
  #pv-hub #bottom-wrapper,
  #pv-hub #bottom-menu {
    width: auto;
    float: none;
  }
  #pv-hub #site-wrapper { padding: 0 12px; }
  #pv-hub #top-wrapper { height: auto; overflow: hidden; }
  #pv-hub #top-wrapper #logo { float: none; }
  #pv-hub #logo img { max-width: 70%; height: auto; }
  #pv-hub #top-wrapper #top-menu { float: none; }
  #pv-hub #right-col { padding: 0; margin-top: 14px; }
  .pvt .pvh-panel { padding: 18px 16px; }
  .pvt h1 { font-size: 22px; }
}
