/*
Theme Name: Publicist PR
Description: Local migration theme based on the restored Drupal 7 presentation.
Version: 1.0.0
*/

:root {
  --ink: #181818;
  --pink: #ff3399;
  --paper: #fff;
  --nav: rgba(28, 28, 28, 0.62);
}

* { box-sizing: border-box; }

html { background: #d9d5cd; }

body {
  margin: 0;
  color: var(--ink);
  background: #d9d5cd url("assets/bg-02.jpg") center top / cover fixed no-repeat;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.48;
}

a { color: var(--pink); }

.site-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 774px);
  gap: 16px;
  width: min(1010px, calc(100% - 32px));
  margin: 30px auto 48px;
  align-items: start;
}

.site-nav {
  position: sticky;
  top: 24px;
  padding: 20px 18px;
  background: var(--nav);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.14);
}

.site-nav ul { margin: 0; padding: 0; list-style: none; }

.site-nav li { margin: 0; }
.site-nav > ul > li { position: relative; }

.site-nav a {
  display: block;
  padding: 1px 0;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.08;
}

.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--pink); }

.site-nav .sub-menu { display: none; }
.site-nav .is-open > .sub-menu {
  display: block;
  padding-left: 26px;
}
.site-nav .sub-menu a {
  font-size: 12px;
  line-height: 1.8;
}
.site-nav .submenu-toggle {
  position: absolute;
  top: 2px;
  left: -15px;
  width: 12px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.site-nav .submenu-toggle::before {
  display: block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #111;
  content: "";
  transform-origin: 2px 4px;
}
.site-nav .is-open > .submenu-toggle::before { transform: rotate(90deg); }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-content {
  position: relative;
  min-width: 0;
  padding: 26px 34px 38px;
  background: var(--paper);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.brand { display: inline-block; margin-bottom: 22px; }
.brand img { display: block; width: 135px; height: auto; }

.entry-title {
  margin: 0 0 20px;
  color: var(--pink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

body:not(.home):not(.publicist-archive):not(.publicist-partners) .entry-title {
  position: static;
  min-height: 105px;
  margin: -102px 0 22px 140px;
}

.entry-content { overflow-wrap: anywhere; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 18px; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content iframe { max-width: 100%; }
.entry-content table { max-width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px; border: 1px solid #ddd; }

.book-navigation .page-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding: 8px 6px;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}
.book-navigation .page-links br { display: none; }
.book-navigation .page-previous {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}
.book-navigation .page-up {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}
.book-navigation .page-next {
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

.publicist-contact-address { color: var(--pink); }
.publicist-map {
  width: min(500px, 100%);
  height: 300px;
  margin: 22px 0;
  overflow: hidden;
}
.publicist-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.publicist-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.publicist-social-links img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Match the original Drupal book layout used by the three Partners routes. */
.publicist-partners .site-shell {
  grid-template-columns: 220px minmax(0, 775px);
  gap: 15px;
  width: min(960px, calc(100% - 32px));
  margin-bottom: 40px;
}
.publicist-partners .site-content {
  width: 775px;
  padding: 20px 20px 23px;
}
.publicist-partners .site-nav {
  padding: 28px 18px 34px 38px;
}
.publicist-partners .site-nav > ul > li > a {
  font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", sans-serif;
  font-size: 22px;
  line-height: 21px;
}
.publicist-partners .site-nav .is-open > .sub-menu { padding-left: 25px; }
.publicist-partners .brand {
  display: block;
  width: 135px;
  height: auto;
  margin: 0;
}
body.publicist-partners .entry-title {
  position: absolute;
  top: 62px;
  right: 20px;
  left: 20px;
  width: auto;
  padding: 30px 0 0;
  font-family: HelveticaNeue-Light, "Helvetica Neue Light", "Helvetica Neue", sans-serif;
  font-size: 35px;
  line-height: 40px;
  text-indent: 135px;
}
.publicist-partners .entry-content {
  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
  font-size: 14px;
  line-height: 21px;
}
.publicist-partners .entry-content p { line-height: 21px; }
.publicist-partner-detail article { margin-top: -18px; }
.publicist-partner-detail .field-name-body .field-item { padding-top: 21px; }
.publicist-partner-detail .field-name-body .field-item > p:first-child { text-align: center; }
.publicist-partner-detail .field-name-body .field-item > p:last-child { margin-bottom: 0; }
.publicist-partner-detail .book-navigation { margin-top: 3px; }
.publicist-partners-index article { padding-bottom: 1px; }
.publicist-partners-index .entry-content { padding-top: 3px; }
.publicist-partners-index .field-name-body .field-item > p:first-child { text-align: center; }
.publicist-partners-index .sharethis-buttons {
  height: 26px;
  overflow: hidden;
}
.publicist-partners-index .sharethis-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 26px;
  transform: translateY(3px);
}
.publicist-partners-index .sharethis-wrapper br { display: none; }
.publicist-partners-index .sharethis-wrapper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 22px;
  border-radius: 3px;
  color: #fff;
  font: 11px/1 Arial, Helvetica, sans-serif;
}
.publicist-partners-index .st_facebook_button { background: #4267a9; }
.publicist-partners-index .st_twitter_button { background: #1da1f2; }
.publicist-partners-index .st_linkedin_button { background: #3478a5; }
.publicist-partners-index .st_email_button { background: #777; }
.publicist-partners-index .st_sharethis_button { background: #86c440; }
.publicist-partners-index .st_pinterest_button { background: #cc1f2e; }
.publicist-partners-index .st_plusone_button,
.publicist-partners-index .st_fblike_button { display: none; }
.publicist-partners-index .st_facebook_button::before { content: "Share"; }
.publicist-partners-index .st_twitter_button::before { content: "Tweet"; }
.publicist-partners-index .st_linkedin_button::before { content: "Share"; }
.publicist-partners-index .st_email_button::before { content: "Email"; }
.publicist-partners-index .st_sharethis_button::before { content: "Share"; }
.publicist-partners-index .st_pinterest_button::before { content: "Pin"; }
.publicist-partners-index .page-next {
  grid-column: 3;
  text-align: right;
}
.publicist-partners-index .book-navigation ul.menu,
.publicist-partners-index .book-navigation .page-links {
  position: relative;
  top: 1px;
}
.publicist-partners .book-navigation .page-links {
  margin: 0;
  padding: 7px;
  font-size: 14px;
  line-height: 21px;
}
.publicist-partners .book-navigation ul.menu {
  margin: 21px 0;
  padding: 14px 0 0 42px;
  list-style: none;
}

body.publicist-archive .publicist-archive-row > .entry-title {
  position: static !important;
  top: auto;
  left: auto;
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  text-indent: 0;
}
body.publicist-archive .publicist-archive-row {
  display: flow-root;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ddd;
}
body.publicist-archive .publicist-archive-row:last-of-type { border-bottom: 0; }
.publicist-archive-heading {
  margin: 0 0 28px;
  color: var(--pink);
  font-size: 30px;
  font-weight: 300;
  text-transform: uppercase;
}
.publicist-pager {
  display: flow-root;
  clear: both;
  width: 100%;
  margin: 24px 0 0;
}
.publicist-pager h3 { margin: 0 0 12px; }
.publicist-pager .pager,
.entry-content .pager {
  clear: both;
  width: 100%;
  margin: 21px 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  text-align: center;
  white-space: nowrap;
  font-size: 14px;
  line-height: 21px;
}
.publicist-pager .pager li,
.entry-content .pager li {
  display: inline;
  margin: 0;
  padding: 0 7px;
}

.publicist-recovered-gallery {
  clear: both;
  margin-top: 24px;
  overflow-x: auto;
}
.publicist-recovered-gallery table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
}
.publicist-recovered-gallery td { height: 238px; text-align: center; vertical-align: middle; }
.publicist-recovered-gallery img {
  display: block;
  width: 150px;
  height: 220px;
  margin: 0 auto;
  object-fit: contain;
}
.publicist-recovered-gallery .is-empty { border-color: transparent; }

.publicist-video {
  width: min(420px, 100%);
  margin: 0 0 18px;
  aspect-ratio: 4 / 3;
}
.publicist-video iframe { width: 100%; height: 100%; border: 0; }

body.publicist-lightbox-open { overflow: hidden; }
.publicist-lightbox {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 52px 72px 64px;
  background: rgba(0, 0, 0, 0.88);
}
.publicist-lightbox.is-open { display: flex; }
.publicist-lightbox-figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.publicist-lightbox-image {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}
.publicist-lightbox-caption { margin-top: 10px; color: #fff; font-size: 14px; }
.publicist-lightbox-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
}
.publicist-lightbox-button:hover,
.publicist-lightbox-button:focus-visible { color: var(--pink); border-color: var(--pink); outline: none; }
.publicist-lightbox-close { top: 12px; right: 16px; }
.publicist-lightbox-previous { left: 14px; top: calc(50% - 22px); }
.publicist-lightbox-next { right: 14px; top: calc(50% - 22px); }
.publicist-lightbox-button[hidden] { display: none; }

.entry-content .field-items,
.entry-content .field-item,
.entry-content .content { min-width: 0; }
.entry-content .views-row,
.drupal-footer .views-row { margin-bottom: 24px; }
.entry-content .view-content img,
.drupal-footer img { max-width: 100%; height: auto; }
.drupal-footer {
  width: 100%;
  margin-top: 0;
  padding: 10px 0;
  background: #f8f8f8;
  color: #111;
  font-size: 12px;
  line-height: 1.25;
}
.drupal-footer #footercontainer { width: 100%; }
.drupal-footer .region-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  background: #fff;
}
.drupal-footer .region-footer > .block {
  min-width: 0;
  margin: 0 0 18px;
  padding: 10px 10px 10px 15px;
  border-right: 1px solid #e4e4e4;
}
.drupal-footer .region-footer > .block:last-child { border-right: 0; }
.drupal-footer .block-title {
  margin: 0 0 18px;
  color: #666;
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}
.drupal-footer p { margin: 0 0 12px; }
.drupal-footer ul { padding-left: 16px; }
.drupal-footer input { max-width: 100%; }

.site-footer {
  padding: 8px 0;
  color: #555;
  background: #f8f8f8;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .site-shell { display: block; width: min(100% - 20px, 680px); margin-top: 10px; }
  .site-nav { position: static; margin-bottom: 10px; padding: 14px; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .site-nav a { font-size: 14px; line-height: 1.25; }
  .site-content { padding: 22px 20px 30px; }
  .entry-title { font-size: 26px; }
  body:not(.home):not(.publicist-archive):not(.publicist-partners) .entry-title {
    min-height: 0;
    margin: 0 0 20px;
  }
  .publicist-partners .site-shell { width: min(100% - 20px, 680px); }
  .publicist-partners .site-content { width: 100%; }
  .publicist-partners .entry-title {
    position: static;
    padding: 0;
    text-indent: 0;
  }
  .publicist-lightbox { padding: 54px 14px 74px; }
  .publicist-lightbox-image { max-width: calc(100vw - 28px); max-height: calc(100vh - 140px); }
  .publicist-lightbox-previous { top: auto; bottom: 14px; left: calc(50% - 58px); }
  .publicist-lightbox-next { top: auto; right: calc(50% - 58px); bottom: 14px; }
  .drupal-footer .region-footer { grid-template-columns: 1fr; }
  .drupal-footer .region-footer > .block { border-right: 0; border-bottom: 1px solid #e4e4e4; }
  .site-footer { color: #333; }
}
