/*
Theme Name: Overdrive Steve 2025 child
Theme URI: https://overdrive.com/
Author: OverDrive
Author URI: https://overdrive.com/
Template: twentytwentyfive
Version: 1.0.0
Text Domain: overdrivesteve-2025-child
*/

/* ======================================================
   CSS VARIABLES
   ====================================================== */
:root {
  /* Colors */
  --color-black: #000;
  --color-white: #fff;
  --color-gray: #555;
  --color-light-gray: #ccc;
  --color-dark-overlay: rgba(0, 0, 0, 0.75);
  --color-shadow: rgba(0, 0, 0, 0.15);
  --color-link: #006595;
  --color-cookie-accept: #75ab2f;
  --color-cookie-text-dark: rgba(0, 0, 0, 0.7);

  /* Sizes */
  --btn-size: 48px;
  --icon-size: 24px;
  --radius: 4px;
  --spacing-xs: 5px;
  --spacing-sm: 8px;
  --spacing-md: 10px;
  --spacing-lg: 18px;

  /* Typography */
  --font-main: Georgia, serif;

  /* Animation */
  --transition-fast: all 0.2s ease-in;

  /* Z-Index */
  --z-share: 1000;
  --z-cookie-bg: 999999;
  --z-cookie: 9999999;
}

/* ======================================================
   HEADER
   ====================================================== */

.skip-link.screen-reader-text:focus{
  top: 75px;
}

header {
  margin: 0;
  top: 0;
  position: sticky;
  overflow: hidden;
  z-index: calc(var(--z-cookie-bg) - 1);
  background: white;
  border-bottom: 1px solid black;
}

header.nav-container {
  color: var(--color-black);
  background-color: var(--color-white);
  width: 100%;
  left: 0;
}

a {
  word-wrap: break-word;
}

strong {
  font-weight: 700;
}

/* Utility */
.p-0 {
  padding: 0;
}

.m-0 {
  margin: 0 auto;
}

.gap-0 {
  gap: 0;
}

.steve-thumbnail {
  padding-block: var(--spacing-md);
  margin: 0 auto;
}

.missing-image {
  width: 100%;
  height: 100%;
  background-color: white;
  display: block;
  object-fit: cover;
}

h4 a {
  text-decoration: none;
}

h4 a:hover {
  text-decoration: underline;
}

h1.thoughts-from {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

h1.thoughts-from strong {
  font-size: 51px;
  font-weight: 400;
}

/* ======================================================
   SHARE TOOL
   ====================================================== */
.share-buttons-container {
  margin: 0;
}

#st-2 {
  font-family: var(--font-main);
  transition: var(--transition-fast);
  backface-visibility: hidden;
  display: block;
  position: fixed;
  opacity: 1;
  text-align: left;
  top: calc(50% - 60px);
  z-index: var(--z-share);
}

#st-2.st-left {
  left: 0;
}

#st-2.st-hidden.st-left {
  left: calc(-1 * var(--btn-size));
}

#st-2.st-hidden {
  width: calc(var(--btn-size) * 2);
}

#st-2.st-preview {
  display: none;
  opacity: 0;
}

#st-2>div {
  clear: left;
  float: left;
}

#st-2 .st-btn {
  box-sizing: border-box;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  height: var(--btn-size);
  line-height: var(--icon-size);
  margin-bottom: var(--spacing-sm);
  opacity: 1;
  overflow: hidden;
  padding: 12px;
  position: relative;
  text-align: left;
  white-space: nowrap;
  width: var(--btn-size);
}

#st-2 .st-btn.st-first {
  border-top-right-radius: var(--radius);
}

#st-2 .st-btn.st-last {
  border-bottom-right-radius: var(--radius);
}

#st-2 .st-btn>svg,
#st-2 .st-btn>img {
  transition: var(--transition-fast);
  height: var(--icon-size);
  width: var(--icon-size);
  vertical-align: top;
}

#st-2 .st-btn:focus {
  outline-offset: 2px;
  outline: 2px solid black;
}

#st-2 .st-btn>span {
  transition: var(--transition-fast);
  color: var(--color-white);
  font-weight: 500;
  left: -35px;
  letter-spacing: 0.5px;
  opacity: 0;
  padding: 0 6px;
  position: relative;
}

#st-2 .st-btn.st-hide-label>span {
  display: none !important;
}

#st-2 .st-total {
  transition: var(--transition-fast);
  background: var(--color-white);
  color: var(--color-gray);
  font-weight: 500;
  line-height: var(--spacing-lg);
  min-height: 34px;
  max-width: 80px;
  padding: 4px 0;
  text-align: center;
  width: var(--btn-size);
}

#st-2 .st-total.st-hidden {
  display: none;
}

#st-2 .st-total>span {
  display: block;
  font-size: 12px;
  line-height: 21px;
}

#st-2 .st-total>span.st-shares {
  font-size: 12px;
  line-height: 11px;
}

#st-2 .st-toggle {
  left: calc(-1 * var(--btn-size));
  transition: var(--transition-fast);
  background: var(--color-light-gray);
  border-bottom-right-radius: var(--radius);
  color: var(--color-white);
  font-size: 24px;
  line-height: var(--icon-size);
  text-align: center;
  width: var(--btn-size);
}

/* Hover behavior */
#st-2:hover .st-toggle {
  left: 0;
}

#st-2.st-hidden:hover .st-toggle {
  left: var(--btn-size);
}

#st-2 .st-btn:hover {
  border-radius: 0 var(--radius) var(--radius) 0;
}

#st-2.st-has-labels .st-btn:hover {
  width: 100%;
}

#st-2:not(.st-has-labels) .st-btn:hover {
  width: 62px;
}

#st-2 .st-btn:hover>svg,
#st-2 .st-btn:hover>img {
  margin-left: var(--spacing-xs);
}

#st-2 .st-btn:hover>span {
  opacity: 1;
  left: 0;
}

/* Remove twitter button from floating sidebar. */
#st-2 .st-btn:nth-child(2) {
  display: none !important;
}

/* ======================================================
   subscribe-modal
   ====================================================== */

.subscribe-modal-container {
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: none;
  z-index: 999999;
}

.subscribe-modal-container .modal-dialog {
  background: white;
  width: fit-content;
}

.subscribe-modal-container .modal.fade {
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.subscribe-modal-container .modal-dialog {
  background: white;
  height: fit-content;
}

.subscribe-modal-container .modal-header {
  display: flex;
  align-items: center;
}

.subscribe-modal-container .modal-header .modal-title {
  flex-grow: 1;
  font-size: var(--spacing-lg);
}

.subscribe-modal-container .modal-dialog {
  padding-inline: 30px;
  max-width: 290px;
}

input[type="submit"]:hover,
#subscribe button:hover {
  text-decoration: underline;
}

input[type="submit"],
.subscribe-modal-container button {
  cursor: pointer;
  font-size: var(--spacing-lg);
}

.subscribe-modal-container input {
  padding: var(--spacing-sm);
  font-size: var(--spacing-lg);
}

.subscribe-modal-container input[type="submit"] {
  background: var(--color-black);
  color: var(--color-white);
  padding: 1rem;
  font-size: var(--spacing-lg);
  font-family: var(--font-main);
}

#subscribe button:focus,
input[type="submit"]:focus {
  outline-offset: 2px;
  outline: 2px solid black;
  text-decoration: underline;
}

.subscribe-modal-container button {
  background: var(--color-white);
}

.es_subscription_message.success {
  display: flex;
  padding-block-end: calc(var(--spacing-lg) * 2);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  #st-2 .st-btn {
    display: inline-block;
    justify-content: center;
    width: 100%;
    margin-bottom: 0px;
  }

  #st-2 {
    bottom: 0;
    display: flex;
    top: auto;
    width: 100%;
  }

  #st-2.st-hidden {
    bottom: calc(-1 * var(--btn-size));
  }

  #st-2>div {
    flex: 1;
    clear: none;
    float: none;
  }

  #st-2 .st-btn {
    border-radius: 0 !important;
    text-align: center;
  }

  #st-2 .st-toggle {
    display: none;
  }

  .accept-refuse-columns {
    display: flex;
    gap: var(--spacing-md);
  }
}

@media (max-width: 781px) {
  h1.thoughts-from {
    text-align: left;
    padding-block: 20px;
    align-items: flex-start;
  }

  .wp-block-buttons:has(#subscribe) {
    justify-content: flex-start;
  }
}

/* ======================================================
   NETWORK COLORS
   ====================================================== */
#st-2 .st-btn[data-network='facebook'],
#st-2 .st-btn[data-network='twitter'],
#st-2 .st-btn[data-network='linkedin'] {
  background-color: var(--color-black);
}

#st-2 .st-btn[data-network='facebook']>span,
#st-2 .st-btn[data-network='twitter']>span,
#st-2 .st-btn[data-network='linkedin']>span {
  color: var(--color-white);
}

/* ======================================================
   COOKIE NOTICE
   ====================================================== */
body.modal-open {
  overflow: hidden;
}

#cookie-settings {
  padding-block: 1rem;
}

#cookie-settings button {
  text-decoration: underline;
}

#cookie-settings a:focus {
  outline-offset: 2px;
  outline: 2px solid white;
}

#cn-accept-cookie:focus,
#cn-refuse-cookie:focus {
  outline-offset: 2px;
  outline: 2px solid black;
}

#cn-accept-cookie {
  background: var(--color-cookie-accept);
  border: 1px solid var(--color-cookie-accept);
  cursor: pointer;
  color: var(--color-cookie-text-dark);
  font-weight: 700;
}

#cn-refuse-cookie {
  background: var(--color-cookie-text-dark);
  border: 1px solid var(--color-white);
  color: var(--color-white);
  cursor: pointer;
  font-weight: 700;
}

#cookie-notice {
  bottom: 0;
  display: none;
  position: fixed;
  width: 100%;
  z-index: var(--z-cookie);
  background-color: var(--color-white);
  box-shadow: 0 0 5px 5px var(--color-shadow);
}

#cookie-notice a {
  color: var(--color-link);
}

.cookie-notice-container {
  padding: var(--spacing-lg);
}

#cookie-bg {
  display: none;
  z-index: var(--z-cookie-bg);
  position: fixed;
  top: 0;
  width: 100%;
  height: 105%;
  background-color: var(--color-dark-overlay);
}