/* itenorio — personalizações sobre o Casper. Cores continuam as do Casper/admin. */

/* Home: frase sobre a capa menor (o Casper usa 6rem) */
.site-description.itn-tagline {
    max-width: 860px;
    font-size: clamp(2.2rem, 1.4rem + 2vw, 3.6rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
@media (max-width: 991px) {
    .site-description.itn-tagline { font-size: 2.2rem !important; }
}

/* Rodapé */
.itn-footer { padding-top: 64px; padding-bottom: 48px; }
/* o Casper faz do .inner do rodapé um grid de 3 colunas e pinta os links; aqui o layout é nosso */
.site-footer.itn-footer .inner { display: block; }
.site-footer.itn-footer a { color: #fff; }
.itn-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
}
.itn-footer-title {
    font-family: var(--gh-font-heading, var(--font-sans));
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}
.itn-footer-bio { max-width: 380px; margin: 12px 0 20px; font-size: 1.5rem; line-height: 1.6; opacity: .65; }
.itn-footer-home {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
    font-size: 1.4rem; font-weight: 600; text-decoration: none;
    transition: border-color .2s, background-color .2s;
}
.itn-footer-home:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.05); }
.itn-mark { font-weight: 800; letter-spacing: .02em; }
.itn-mark > span { color: #0078d7; } /* o "i" azul da marca do itenorio.com */
.itn-footer-col h3 {
    margin: 0 0 16px; font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; opacity: .5;
}
.itn-footer-col ul { margin: 0; padding: 0; list-style: none; }
.itn-footer-col li { margin: 0 0 10px; padding: 0; font-size: 1.5rem; line-height: 1.4; }
.itn-footer-col li a { opacity: .8; text-decoration: none; transition: opacity .2s; }
.itn-footer-col li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.itn-footer-social { display: flex; flex-wrap: wrap; gap: 16px; }
.itn-footer-contact { display: flex; align-items: flex-start; gap: 10px; }
.itn-footer-contact svg { flex: none; width: 16px; height: 16px; margin-top: 3px; fill: #0078d7; }
.itn-footer-contact a { overflow-wrap: anywhere; }
.itn-footer-social a { display: inline-flex; opacity: .7; transition: opacity .2s; }
.itn-footer-social a:hover { opacity: 1; }
.itn-footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.itn-footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
    font-size: 1.3rem; opacity: .55;
}
.itn-footer-bottom a { text-decoration: none; }
.itn-footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 991px) {
    .itn-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
    .itn-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .itn-footer { padding-top: 48px; }
    .itn-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Toques pequenos de identidade */
::selection { background: rgba(0, 120, 215, .35); }
.gh-content a:not(.kg-btn):not(.kg-bookmark-container) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 120, 215, .7);
}
.gh-content a:not(.kg-btn):not(.kg-bookmark-container):hover { text-decoration-thickness: 2px; }
.post-card-title { transition: opacity .2s; }
.post-card-content-link:hover .post-card-title { opacity: .8; }

/* Barra de progresso de leitura nos posts (o script fica no default.hbs) */
.itn-progress {
    position: fixed; top: 0; left: 0; z-index: 1000;
    width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(0);
    background: #0078d7; pointer-events: none;
}

/* Índice do post (post.hbs) */
.gh-content > :is(h2, h3)[id] { scroll-margin-top: 32px; }
.itn-toc { font-family: var(--font-sans); }
.itn-toc-box {
    border: 1px solid rgba(127,127,127,.25); border-radius: 10px; padding: 14px 18px;
}
.itn-toc-title {
    cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
    font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7;
}
.itn-toc-title::-webkit-details-marker { display: none; }
.itn-toc-title::after { content: "+"; font-size: 1.8rem; font-weight: 400; line-height: 1; }
.itn-toc-box[open] .itn-toc-title::after { content: "\2212"; }
.itn-toc-list { margin: 12px 0 0; padding: 0; list-style: none; }
.itn-toc-list li { margin: 0; padding: 0; font-size: 1.5rem; line-height: 1.4; }
.itn-toc-list li + li { margin-top: 8px; }
.itn-toc-list .itn-toc-h3 { padding-left: 14px; font-size: 1.4rem; }
.itn-toc[hidden], .itn-featured-nav[hidden] { display: none !important; }
.gh-content .itn-toc .itn-toc-list a { color: inherit; text-decoration: none; opacity: .65; transition: opacity .2s, color .2s; }
.gh-content .itn-toc .itn-toc-list a:hover { opacity: 1; }
.gh-content .itn-toc .itn-toc-list a.is-active { opacity: 1; color: #0078d7; }
@media (min-width: 1300px) {
    .itn-toc {
        grid-column: main-end / full-end; align-self: start; position: sticky; top: 40px;
        margin: 0 !important; padding-left: 48px; max-width: 320px;
        max-height: calc(100vh - 80px); overflow-y: auto;
    }
    .itn-toc + * { margin-top: 0 !important; }
    .itn-toc-box { border: 0; border-left: 1px solid rgba(127,127,127,.25); border-radius: 0; padding: 0 0 0 18px; }
    .itn-toc-title { cursor: default; }
    .itn-toc-title::after { display: none; }
}

/* Carrossel "Recommended" na home (index.hbs) */
.itn-featured { padding-top: max(6vmin, 40px); }
.itn-featured-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.itn-featured-heading {
    margin: 0; font-family: var(--font-sans); font-size: 1.3rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; opacity: .6;
}
.itn-featured-nav { display: flex; gap: 8px; }
.itn-featured-btn {
    width: 36px; height: 36px; border: 1px solid rgba(127,127,127,.35); border-radius: 50%;
    background: transparent; color: inherit; font-size: 1.6rem; cursor: pointer; transition: border-color .2s, opacity .2s;
}
.itn-featured-btn:hover:not(:disabled) { border-color: #0078d7; }
.itn-featured-btn:disabled { opacity: .3; cursor: default; }
.itn-featured-track {
    display: grid; grid-auto-flow: column; gap: 24px;
    /* 1 destaque ocupa a largura toda, 2 dividem, 3+ ficam 3 por vez e o resto rola */
    grid-auto-columns: minmax(calc((100% - 48px) / 3), 1fr);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.itn-featured-track::-webkit-scrollbar { display: none; }
.itn-featured-card {
    scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; min-width: 0;
    padding: 28px 28px 24px; border: 1px solid rgba(127,127,127,.25); border-top: 3px solid #0078d7;
    border-radius: 12px; background: rgba(127,127,127,.06); color: inherit; text-decoration: none;
    transition: border-color .2s, background-color .2s, transform .2s;
}
.itn-featured-card:hover { background: rgba(127,127,127,.1); transform: translateY(-2px); }
.itn-featured-tag { font-size: 1.2rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0078d7; }
.itn-featured-title {
    margin: 0; font-family: var(--gh-font-heading, var(--font-sans)); font-size: 2.4rem; font-weight: 700; line-height: 1.2;
}
.itn-featured-excerpt { margin: 0; font-size: 1.5rem; line-height: 1.6; opacity: .7; }
.itn-featured-meta { margin-top: auto; padding-top: 6px; font-size: 1.3rem; opacity: .5; }
@media (max-width: 767px) {
    .itn-featured-track { grid-auto-columns: 86%; gap: 16px; }
    .itn-featured-card { padding: 22px; }
    .itn-featured-title { font-size: 2rem; }
}
