/**
 * THT Directory — front-end styles.
 * Scoped to the plugin's templates; inherits the theme's fonts and colors.
 * Overrides are deliberately minimal so directory pages sit inside the
 * existing thehawaiiteam.com look.
 */

.tht-directory {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3rem;
}

.tht-directory .tht-body {
    line-height: 1.65;
}

.tht-directory .tht-body p {
    margin: 0 0 1.1em;
}

/* Breadcrumb */
.tht-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    padding: 0;
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    opacity: 0.8;
}
.tht-breadcrumb li + li::before {
    content: "\203A";
    margin-right: 0.35em;
}

/* Opening answer */
.tht-opening-answer {
    font-size: 1.15rem;
    line-height: 1.6;
    border-left: 4px solid currentColor;
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 1.25rem 0;
}

/* Author blocks */
.tht-author {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}
.tht-author-photo {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
}
.tht-author-full {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 1.25rem;
}
.tht-author-dates {
    opacity: 0.7;
}

/* inShort card */
.tht-inshort {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.tht-inshort-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
}
.tht-inshort dt {
    font-weight: 700;
    margin-top: 0.6rem;
}
.tht-inshort dd {
    margin: 0.15rem 0 0;
}

/* Key takeaways */
.tht-takeaways ul {
    padding-left: 1.2rem;
}
.tht-takeaways li {
    margin-bottom: 0.5rem;
}

/* Pull quote */
.tht-pullquote {
    margin: 2rem 0;
    padding: 0 0 0 1.25rem;
    border-left: 4px solid currentColor;
    font-size: 1.25rem;
    line-height: 1.5;
    font-style: italic;
}
.tht-pullquote cite {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    margin-top: 0.5rem;
    opacity: 0.75;
}

/* Perspective (Dan's Take) */
.tht-perspective {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.tht-perspective h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

/* Sources */
.tht-sources ol {
    font-size: 0.9rem;
    padding-left: 1.4rem;
}

/* FAQ */
.tht-faq details {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.75rem 0;
}
.tht-faq summary {
    cursor: pointer;
    font-weight: 600;
}
.tht-faq details p {
    margin: 0.6rem 0 0.25rem;
}

/* Cards */
.tht-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
}
.tht-card {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1rem;
}
.tht-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    line-height: 1.4;
}
.tht-card p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.85;
}

/* Node list on cluster hubs reads better single-column */
.tht-node-list .tht-card-grid {
    grid-template-columns: 1fr;
}

/* Comparison table */
.tht-table-scroll {
    overflow-x: auto;
    margin: 1.5rem 0;
}
.tht-comparison table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
}
.tht-comparison th,
.tht-comparison td {
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
}
.tht-comparison thead th {
    background: rgba(0, 0, 0, 0.05);
}

/* How-to steps */
.tht-steps {
    counter-reset: tht-step;
    list-style: none;
    padding: 0;
}
.tht-steps > li {
    counter-increment: tht-step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}
.tht-steps > li::before {
    content: counter(tht-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.tht-steps h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

/* Editor's note */
.tht-editors-note {
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    margin: 0.75rem 0;
}

/* CTA */
.tht-cta {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}
.tht-cta-button {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0.5rem;
}

/* Multi-avatar CTA row (location pages) */
.tht-avatar-ctas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.tht-avatar-cta {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1rem;
}
.tht-avatar-cta h3 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
}
.tht-avatar-cta p {
    margin: 0;
    font-size: 0.85rem;
}

/* Guide extras */
.tht-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    margin: 0 0 0.25rem;
    opacity: 0.7;
}
.tht-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
}
.tht-reading-meta {
    font-size: 0.85rem;
    opacity: 0.7;
}
.tht-lede {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.tht-lede h3{
    margin-bottom: 20px;
}

.tht-lede p{
    line-height: 1.6;
}

.tht-toc {
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.tht-toc summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.4;
}

.tht-toc summary::-webkit-details-marker {
    display: none;
}

.tht-toc summary::before {
    content: "";
    flex-shrink: 0;
    align-self: center;
    position: relative;
    top: 0.05em;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.65;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tht-toc[open] summary::before {
    transform: rotate(135deg);
    top: 0.03em;
    opacity: 1;
}

body.single-tht_guide .type-tht_guide details.tht-toc ol {
    list-style: decimal !important;
    list-style-position: outside;
    margin: 0 !important;
    padding: 0.35rem 0 0 calc(0.45rem + 0.75rem + 2px) !important;
}

body.single-tht_guide .type-tht_guide details.tht-toc ol li {
    margin-left: 0 !important;
    padding: 0.2rem 0 !important;
}
.tht-closing {
    border-top: 2px solid currentColor;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}
.tht-conviction {
    font-size: 1.15rem;
}
.tht-disclaimer {
    font-size: 0.8rem;
    opacity: 0.75;
    margin: 1.5rem 0;
}

.tht-disclaimer p{
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Index pages (Directory Index, pillar jump nav) */
.tht-directory.tht-directory-index {
    max-width: 980px;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
}

.tht-directory-index .tht-index-header h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
}

.tht-directory-index .tht-index-lede {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.85;
    max-width: 42rem;
}

.tht-directory-index .tht-index-jump {
    margin: 1.5rem 0 2.25rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.tht-directory-index .tht-index-jump ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.tht-directory-index .tht-index-jump a {
    display: inline-block;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    transition: background-color 0.15s ease;
}

.tht-directory-index .tht-index-jump a:hover,
.tht-directory-index .tht-index-jump a:focus-visible {
    background: rgba(0, 0, 0, 0.06);
}

.tht-directory-index .tht-index-pillar {
    margin: 2.25rem 0;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    scroll-margin-top: 1.5rem;
}

.tht-directory-index .tht-index-pillar > h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

.tht-directory-index .tht-index-pillar > h2 a {
    text-decoration: none;
}

.tht-directory-index .tht-index-pillar > h2 a:hover,
.tht-directory-index .tht-index-pillar > h2 a:focus-visible {
    text-decoration: underline;
}

.tht-directory-index .tht-index-pillar > p {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
    max-width: 62ch;
}

.tht-directory-index .tht-index-cluster {
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tht-directory-index .tht-index-pillar > .tht-index-cluster:first-of-type {
    margin-top: 0.25rem;
    padding-top: 0;
    border-top: none;
}

.tht-directory-index .tht-index-pillar > h3 {
    margin: 1.5rem 0 0.65rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.05rem;
    line-height: 1.35;
}

.tht-directory-index .tht-index-pillar > h3:first-of-type {
    margin-top: 0.25rem;
    padding-top: 0;
    border-top: none;
}

.tht-directory-index .tht-index-cluster h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    line-height: 1.35;
}

.tht-directory-index .tht-index-cluster h3 a,
.tht-directory-index .tht-index-pillar > h3 a {
    text-decoration: none;
    font-weight: 700;
}

.tht-directory-index .tht-index-cluster h3 a:hover,
.tht-directory-index .tht-index-cluster h3 a:focus-visible,
.tht-directory-index .tht-index-pillar > h3 a:hover,
.tht-directory-index .tht-index-pillar > h3 a:focus-visible {
    text-decoration: underline;
}

.tht-directory-index .tht-index-node-list,
.tht-directory-index .tht-index-pillar > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.tht-directory-index .tht-index-node-list > li,
.tht-directory-index .tht-index-pillar > ul > li {
    margin: 0;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.45;
    font-size: 0.92rem;
}

.tht-directory-index .tht-index-node-list a,
.tht-directory-index .tht-index-pillar > ul a {
    text-decoration: none;
}

.tht-directory-index .tht-index-node-list a:hover,
.tht-directory-index .tht-index-node-list a:focus-visible,
.tht-directory-index .tht-index-pillar > ul a:hover,
.tht-directory-index .tht-index-pillar > ul a:focus-visible {
    text-decoration: underline;
}

/* Shared index block spacing (community index, etc.) */
.tht-index-pillar {
    margin: 2rem 0;
}

/* BIS handoff line */
.tht-bis-handoff {
    font-size: 0.95rem;
    font-style: italic;
    margin: 1.5rem 0;
}

/* Footer credit */
.tht-credit {
    font-size: 0.75rem;
    opacity: 0.65;
}

/* Guide content blocks (imported body markup) */
.tht-emphasis {
    background: #1f2933;
    color: #f5f7fa;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
}

.tht-emphasis a {
    color: #9fd3f5;
}

.tht-stat-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    background: #eef4f8;
    padding: 1rem;
    border-radius: 6px;
    margin: 1.25rem 0;
}

.tht-stat-banner div {
    text-align: center;
}

.tht-stat-banner strong {
    display: block;
    font-size: 1.5rem;
}

.tht-highlight-box {
    border-left: 4px solid #1d5f8a;
    background: #f6f9fb;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.tht-concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.tht-concept-grid > div {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 1rem;
}

.tht-concept-grid h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.tht-bold-lead-list li {
    margin-bottom: 0.5rem;
}

/*
 * Guide singles — same shell as theme .single-tht_node (inner padding, lists, H1).
 * Keeps guides inside the theme chrome without editing the theme build.
 */
body.single-tht_guide .ip-banner {
    display: block !important;
}

body.single-tht_guide .inner-page-container {
    padding: 0 50px !important;
}

body.single-tht_guide .tht-breadcrumb {
    color: var(--primary-text, inherit);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    padding: 15px 0 24px;
    line-height: 1;
    margin: 0;
}

body.single-tht_guide header.tht-guide-header h1 {
    font-size: 35px !important;
    line-height: 1.25 !important;
    margin: 0 0 1rem !important;
}

@media screen and (min-width: 1024px) {
    body.single-tht_guide header.tht-guide-header h1 {
        font-size: 50px !important;
    }
}

body.single-tht_guide .type-tht_guide ul {
    list-style: unset !important;
    padding: 30px 0;
}

body.single-tht_guide .type-tht_guide ul li {
    padding: 5px;
    margin-left: 30px;
}

body.single-tht_guide .type-tht_guide ol {
    list-style: decimal !important;
    padding: 30px 0;
}

body.single-tht_guide .type-tht_guide ol li {
    padding: 5px;
    margin-left: 30px;
}

body.single-tht_guide .tht-lede h2,
body.single-tht_guide .tht-takeaways h2 {
    margin-bottom: 0.75rem !important;
}

body.single-tht_guide .tht-toc[open] summary {
    margin-bottom: 0.75rem !important;
}

body.single-tht_guide .tht-related-guides h2,
body.single-tht_guide .tht-related-clusters h2 {
    margin-bottom: 30px;
}

body.single-tht_guide .tht-guide-footer p,
body.single-tht_guide .tht-author p {
    margin-bottom: 20px;
}

body.single-tht_guide .tht-author-full {
    border: none !important;
}

/* Numbered step lists — win over guide/node article ol resets */
.tht-directory ol.tht-steps,
body.single-tht_guide .type-tht_guide ol.tht-steps,
body.single-tht_node .type-tht_node ol.tht-steps,
body.single-tht_location .type-tht_location ol.tht-steps {
    list-style: none !important;
    padding: 0 !important;
    margin: 1.25rem 0 1.5rem;
}

.tht-directory ol.tht-steps > li,
body.single-tht_guide .type-tht_guide ol.tht-steps > li,
body.single-tht_node .type-tht_node ol.tht-steps > li,
body.single-tht_location .type-tht_location ol.tht-steps > li {
    list-style: none !important;
    margin-left: 0 !important;
    padding: 0 0 0 3rem !important;
}

/* Closing block — theme global `section { padding: 0 40px }` + oversized h2 */
body.single-tht_guide .tht-directory section.tht-closing {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 1.5rem !important;
    padding-bottom: 0 !important;
    border-top: 2px solid currentColor;
    margin-top: 2.5rem;
    margin-bottom: 30px;
}

body.single-tht_guide .tht-closing h2 {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
    margin: 0 0 0.75rem !important;
}

body.single-tht_guide .tht-closing p {
    margin-bottom: 1.1em;
    line-height: 1.6;
}

body.single-tht_guide .tht-closing .tht-conviction {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* Location / community hubs — same shell as nodes */
.tht-location-lede {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
    opacity: 0.9;
}

.tht-listings-offramp {
    background: #f6f9fb;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 2rem 0;
}

body.single-tht_location .ip-banner {
    display: block !important;
}

body.single-tht_location .inner-page-container {
    padding: 0 50px !important;
}

body.single-tht_location .tht-breadcrumb {
    color: var(--primary-text, inherit);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    padding: 15px 0 24px;
    line-height: 1;
    margin: 0;
}

body.single-tht_location header.tht-location-header h1,
body.single-tht_node header.tht-node-header h1 {
    font-size: 35px !important;
    line-height: 1.25 !important;
    margin: 0 0 1rem !important;
}

body.single-tht_location h2,
body.single-tht_node h2 {
    line-height: 1.25 !important;
}

body.single-tht_location h2:not(:has(+ul)),
body.single-tht_node h2:not(:has(+ul)) {
    margin: 0 0 1rem !important;
}

@media screen and (min-width: 1024px) {
    body.single-tht_location header.tht-location-header h1,
    body.single-tht_node header.tht-node-header h1 {
        font-size: 50px !important;
    }
}

body.single-tht_location .type-tht_location ul {
    list-style: unset !important;
    padding: 30px 0;
}

body.single-tht_location .type-tht_location ul li {
    padding: 5px;
    margin-left: 30px;
}

body.single-tht_location .type-tht_location ol {
    list-style: decimal !important;
    padding: 30px 0;
}

body.single-tht_location .type-tht_location ol li {
    padding: 5px;
    margin-left: 30px;
}

body.single-tht_location .tht-directory.tht-location section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.single-tht_location .tht-directory section.tht-listings-offramp {
    padding: 1rem 1.25rem !important;
}

body.single-tht_location .tht-listings-offramp h2,
body.single-tht_location .tht-directory section.tht-related h2,
body.single-tht_location .tht-related-guides h2,
body.single-tht_location .tht-related-locations h2 {
    margin-bottom: 30px;
}

body.single-tht_location .tht-location-footer p,
body.single-tht_location .tht-author p {
    margin-bottom: 20px;
}

body.single-tht_location .tht-author-full {
    border: none !important;
}

/* Cluster & pillar hub pages — same shell as nodes */
body[class*="template-cluster-hub"] .ip-banner,
body[class*="template-pillar-hub"] .ip-banner {
    display: block !important;
}

body[class*="template-cluster-hub"] .inner-page-container,
body[class*="template-pillar-hub"] .inner-page-container {
    padding: 0 50px !important;
}

body[class*="template-cluster-hub"] .tht-breadcrumb,
body[class*="template-pillar-hub"] .tht-breadcrumb {
    color: var(--primary-text, inherit);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    padding: 15px 0 24px;
    line-height: 1;
    margin: 0;
}

body[class*="template-cluster-hub"] main.tht-cluster-hub header h1,
body[class*="template-pillar-hub"] main.tht-pillar-hub header h1 {
    font-size: 35px !important;
    line-height: 1.25 !important;
    margin: 0 0 1rem !important;
}

@media screen and (min-width: 1024px) {
    body[class*="template-cluster-hub"] main.tht-cluster-hub header h1,
    body[class*="template-pillar-hub"] main.tht-pillar-hub header h1 {
        font-size: 50px !important;
    }
}

main.tht-cluster-hub section,
main.tht-pillar-hub section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

main.tht-cluster-hub .tht-body ul,
main.tht-pillar-hub .tht-body ul {
    list-style: unset !important;
    padding: 30px 0;
}

main.tht-cluster-hub .tht-body ul li,
main.tht-pillar-hub .tht-body ul li {
    padding: 5px;
    margin-left: 30px;
}

main.tht-cluster-hub .tht-body ol,
main.tht-pillar-hub .tht-body ol {
    list-style: decimal !important;
    padding: 30px 0;
}

main.tht-cluster-hub .tht-body ol li,
main.tht-pillar-hub .tht-body ol li {
    padding: 5px;
    margin-left: 30px;
}

main.tht-cluster-hub .tht-node-list h2,
main.tht-cluster-hub .tht-related-clusters h2,
main.tht-cluster-hub .tht-related-guide h2,
main.tht-pillar-hub .tht-cluster-grid h2,
main.tht-pillar-hub .tht-related-guides h2 {
    margin-bottom: 30px;
}

main.tht-cluster-hub .tht-related-clusters ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem;
}

main.tht-cluster-hub .tht-related-clusters li {
    margin: 0 !important;
    padding: 0.45rem 0 !important;
}

main.tht-cluster-hub footer p,
main.tht-pillar-hub footer p,
main.tht-cluster-hub .tht-author p,
main.tht-pillar-hub .tht-author p {
    margin-bottom: 20px;
}

.tht-community-index h1{
    margin-bottom: 30px;
}