/*!
Theme Name: Tài chính 360
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: taisandautu
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* Scope header logo size to avoid affecting other logo usages. */
#masthead .custom-logo-link,
#masthead .custom-logo-link img {
  display: block;
  width: auto !important;
  height: 70px !important;
  max-width: 380px !important;
  max-height: 70px !important;
  object-fit: contain;
}

#masthead .custom-logo-link {
  text-decoration: none;
}

#masthead .tsdt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
}

#masthead .tsdt-brand-link,
#masthead .tsdt-brand-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

/* Force footer logo smaller and independent from header logo sizing. */
#colophon .tsdt-logo .custom-logo-link {
  display: block;
  width: 140px !important;
}

#colophon .tsdt-logo .custom-logo,
#colophon .tsdt-logo img,
#colophon .tsdt-logo svg {
  width: 140px !important;
  max-width: 140px !important;
  max-height: 42px !important;
  height: auto !important;
}

@media (max-width: 768px) {
  #colophon .tsdt-logo .custom-logo-link {
    width: 128px !important;
  }

  #colophon .tsdt-logo .custom-logo,
  #colophon .tsdt-logo img,
  #colophon .tsdt-logo svg {
    width: 128px !important;
    max-width: 128px !important;
    max-height: 38px !important;
  }
}

@media (max-width: 480px) {
  #colophon .tsdt-logo .custom-logo-link {
    width: 118px !important;
  }

  #colophon .tsdt-logo .custom-logo,
  #colophon .tsdt-logo img,
  #colophon .tsdt-logo svg {
    width: 118px !important;
    max-width: 118px !important;
    max-height: 34px !important;
  }
}

button,
input,
textarea,
select {
  font: inherit;
}

.tsdt-post-thumb {
  flex: 0 0 220px;
  max-width: 220px;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.tsdt-post-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f8fafc;
  border-radius: 12px;
}

.post-featured-media {
  margin: 16px 0 20px;
}

.post-featured-media__img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  background: #f8fafc;
}

.tsdt-related-thumb {
  width: 80px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.tsdt-related-thumb-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Ensure list items don't look like separate cards on blog/archive pages. */
.blog .site-main .post,
.archive .site-main .post {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

/* Add dividers and tighten list spacing on blog/archive pages. */
.blog .site-main .post + .post,
.archive .site-main .post + .post {
  position: relative;
}

.blog .site-main .post + .post::before,
.archive .site-main .post + .post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: #e2e8f0;
}

@media (min-width: 640px) {
  .tsdt-post-thumb-img {
    height: 112px;
  }
}

@media (min-width: 768px) {
  .tsdt-post-thumb-img {
    height: 128px;
  }
}

@media (max-width: 639px) {
  .tsdt-post-thumb {
    max-width: 100%;
  }
}
