/*
Theme Name: TA Advocacia
Theme URI: https://ta.adv.br/blog/
Author: Thiago Almeida Advogados
Description: Tema do blog do Thiago Almeida Advogados (ta.adv.br/blog). Usa as fontes, as cores, o cabeçalho e o rodapé do site principal, carregando o CSS publicado do site (site-assets.json na pasta acima do WordPress).
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: ta-advocacia
*/

/* Everything else comes from the site's own stylesheets; this file only adds the blog's parts. */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header: states the React header renders by mounting elements. */
.admin-bar .ih-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ih-mobile-nav[hidden], .ih-mobile-sub[hidden] { display: none !important; }
.ih-menu-toggle[aria-expanded="true"] .lucide-menu, .ih-menu-toggle[aria-expanded="false"] .lucide-x { display: none; }
/* "Artigos" is the section of every blog page. */
.ih-nav-link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.ih-mobile-nav a[aria-current="true"] { color: var(--primary); }

/* Blog list: the Home's article rows, with h2 titles under the page's h1. */
.ih-blog { padding-top: 72px; }
.ih-insight h2 { max-width: 720px; font-size: 27px; transition: transform .35s var(--ih-ease); --ih-d: .14s; }
@media (hover: hover) { .ih-insight:hover h2 { transform: translateX(5px); } }
.ih-blog-cats { display: flex; flex-wrap: wrap; gap: 6px 30px; margin-bottom: 40px; font-size: 12px; font-weight: 500; text-transform: uppercase; }
.ih-blog-cats a { position: relative; padding: 8px 0; color: var(--muted-foreground); transition: color .2s var(--ih-ease); }
.ih-blog-cats a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ih-ease); }
.ih-blog-cats a span { margin-left: 3px; font-size: 10px; color: var(--primary); }
.ih-blog-cats a:hover, .ih-blog-cats a[aria-current] { color: var(--foreground); }
.ih-blog-cats a:hover::after, .ih-blog-cats a[aria-current]::after { transform: scaleX(1); }
.ih-blog-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 44px; font-size: 13px; font-weight: 500; }
.ih-blog-pages .page-numbers { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid transparent; color: var(--muted-foreground); transition: color .2s var(--ih-ease), border-color .2s var(--ih-ease); }
.ih-blog-pages a.page-numbers:hover { color: var(--foreground); }
.ih-blog-pages .current { color: var(--foreground); border-bottom-color: var(--primary); }
.ih-blog-pages svg { width: 16px; height: 16px; }
.ih-blog-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding: 44px 0; border-top: 1px solid var(--border); }
.ih-blog .ih-blog-empty p { font-size: 17px; color: var(--muted-foreground); }

/* Article hero: long titles, the summary and the date / reading time on the copy column. */
.ih-post-hero h1 { max-width: 16em; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; }
.ih-post-hero .ih-phero-foot { gap: 24px; }
.ih-phero-foot .ih-post-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 10px; line-height: 1.4; text-transform: uppercase; color: var(--muted-foreground); }
.ih-post-meta span { position: relative; padding-left: 22px; }
.ih-post-meta span::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--primary); }
@media (prefers-reduced-motion: no-preference) { .ih-post-meta { animation: ih-rise-in .7s .62s var(--ih-ease-expo) backwards; } }

/* Article body: the privacy page's composition (index on the left, text on the right). */
.ih-post-aside { position: sticky; top: 130px; }
.admin-bar .ih-post-aside { top: calc(130px + var(--wp-admin--admin-bar--height, 32px)); }
.ih-post-aside .ih-legal-index { position: static; }
.ih-post-aside .ih-post-aside-title { margin-bottom: 14px; font-size: 10px; font-weight: 500; line-height: 1.4; text-transform: uppercase; color: var(--muted-foreground); }
.ih-post-aside .ih-post-back { gap: 14px; margin-top: 36px; }
.ih-post-aside .ih-post-back:hover svg { transform: translateX(-4px); }

/* Article text (WordPress blocks): the site's type, red rules and markers. */
.institutional-home .ih-prose { min-width: 0; max-width: 700px; font-size: 17px; line-height: 1.75; color: color-mix(in srgb, var(--foreground) 88%, var(--background)); }
.institutional-home .ih-prose > * { margin: 0; }
.institutional-home .ih-prose > * + * { margin-top: 1.3em; }
.institutional-home .ih-prose h2 { position: relative; margin-top: 2.4em; padding-top: 34px; border-top: 1px solid var(--border); font-size: 26px; font-weight: 300; line-height: 1.25; color: var(--foreground); scroll-margin-top: 130px; }
.institutional-home .ih-prose h2::before { content: ''; position: absolute; left: 0; top: -1px; width: 36px; height: 2px; background: var(--primary); }
.institutional-home .ih-prose > h2:first-child { margin-top: 0; }
.institutional-home .ih-prose h3 { margin-top: 2em; font-size: 20px; font-weight: 400; line-height: 1.35; color: var(--foreground); }
.institutional-home .ih-prose h4 { margin-top: 1.8em; font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--foreground); }
.institutional-home .ih-prose :is(h2, h3, h4) + * { margin-top: .9em; }
.institutional-home .ih-prose :is(strong, b) { font-weight: 500; color: var(--foreground); }
.institutional-home .ih-prose :is(em, i) { font-style: italic; }
.institutional-home .ih-prose a { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s var(--ih-ease); }
.institutional-home .ih-prose a:hover { color: var(--primary); }
.institutional-home .ih-prose :is(ul, ol) { padding: 0; list-style: none; }
.institutional-home .ih-prose li { position: relative; padding-left: 30px; }
.institutional-home .ih-prose li + li { margin-top: .6em; }
.institutional-home .ih-prose ul > li::before { content: ''; position: absolute; left: 0; top: .87em; width: 14px; height: 1px; background: var(--primary); }
.institutional-home .ih-prose ol { counter-reset: ih-item; }
.institutional-home .ih-prose ol > li { counter-increment: ih-item; }
.institutional-home .ih-prose ol > li::before { content: counter(ih-item, decimal-leading-zero); position: absolute; left: 0; top: 0; font-size: 11px; line-height: 2.7; color: var(--primary); }
.institutional-home .ih-prose :is(ul, ol) :is(ul, ol) { margin-top: .6em; }
.institutional-home .ih-prose blockquote { padding: 2px 0 2px 28px; border-left: 2px solid var(--primary); font-size: 22px; font-weight: 300; line-height: 1.5; color: var(--foreground); }
.institutional-home .ih-prose blockquote p + p { margin-top: .8em; }
.institutional-home .ih-prose blockquote cite { display: block; margin-top: 14px; font-size: 11px; font-style: normal; line-height: 1.4; text-transform: uppercase; color: var(--muted-foreground); }
.institutional-home .ih-prose img { display: block; max-width: 100%; height: auto; }
.institutional-home .ih-prose figure { margin-inline: 0; }
.institutional-home .ih-prose figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); }
.institutional-home .ih-prose hr { margin-block: 3em; border: 0; border-top: 1px solid var(--border); }
.institutional-home .ih-prose .wp-block-table { overflow-x: auto; }
.institutional-home .ih-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.institutional-home .ih-prose :is(th, td) { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.institutional-home .ih-prose th { font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--muted-foreground); }
.institutional-home .ih-prose code { padding: .1em .35em; background: var(--secondary); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
.institutional-home .ih-prose pre { overflow-x: auto; padding: 18px 20px; background: var(--secondary); font-size: 14px; line-height: 1.6; }
.institutional-home .ih-prose pre code { padding: 0; background: none; }
.institutional-home .ih-prose :is(iframe, video, embed) { max-width: 100%; }
.institutional-home .ih-prose .aligncenter { margin-inline: auto; }
.institutional-home .ih-prose .has-text-align-center { text-align: center; }
.institutional-home .ih-prose .has-text-align-right { text-align: right; }
.institutional-home .ih-prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.institutional-home .ih-prose .wp-block-button__link { display: inline-flex; align-items: center; height: 48px; padding: 0 23px; border-radius: 0; background: var(--primary); color: var(--primary-foreground); font-size: 12px; font-weight: 500; text-decoration: none; transition: background-color .2s var(--ih-ease), color .2s var(--ih-ease); }
.institutional-home .ih-prose .wp-block-button__link:hover { background: var(--foreground); color: var(--background); }

@media (max-width: 760px) {
  .ih-blog { padding-top: 44px; }
  .ih-blog-cats { gap: 2px 22px; margin-bottom: 26px; }
  .ih-insight h2 { font-size: 22px; }
  .ih-post-hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .ih-post-aside { position: static; margin-bottom: 44px; }
  .ih-post-aside .ih-post-back { display: none; }
  .institutional-home .ih-prose { font-size: 16px; }
  .institutional-home .ih-prose h2 { padding-top: 26px; font-size: 22px; }
  .institutional-home .ih-prose blockquote { padding-left: 20px; font-size: 19px; }
}
@media (max-width: 600px) { .admin-bar .ih-header { top: 0; } }
