/* DTDH theme — layout details theme.json cannot express. Logical properties keep RTL and LTR correct. */

/* Template parts sit flush against the page content. */
.wp-site-blocks>*{margin-block-start:0}

/* Header */
.dtdh-topbar{font-size:.9rem}
.dtdh-topbar__tagline{font-family:var(--wp--preset--font-family--display);font-size:1rem;margin:0}
.dtdh-topbar a{color:inherit}
.dtdh-topbar__login a{display:inline-block;padding:.25rem .75rem;border:1px solid rgba(255,253,249,.4);border-radius:8px;text-decoration:none}
.dtdh-topbar__login a:hover{background:rgba(255,253,249,.12);color:inherit}
.dtdh-brand .wp-block-site-title a{color:var(--wp--preset--color--terracotta-dark);text-decoration:none;letter-spacing:.06em}
.dtdh-brand__mark{margin:0}
.dtdh-nav .wp-block-navigation__container{gap:0}
.dtdh-nav .wp-block-navigation-item__content{padding:.5rem .65rem;border-radius:10px;text-decoration:none;color:var(--wp--preset--color--ink)}
.dtdh-nav .wp-block-navigation-item__content:hover{background:var(--wp--preset--color--sand);color:var(--wp--preset--color--ink)}
.dtdh-nav .current-menu-item>.wp-block-navigation-item__content{background:var(--wp--preset--color--sand)}
.dtdh-header-search .wp-block-search__inside-wrapper{border-radius:999px;border-color:var(--wp--preset--color--line);background:var(--wp--preset--color--cream);padding:3px}
.dtdh-header-search .wp-block-search__input{border:0;background:transparent;padding-inline:.75rem}
.dtdh-header-search .wp-block-search__button{border-radius:50%;flex:none;width:40px;min-width:40px;height:40px;padding:0;margin:0;color:#fff;background:var(--wp--preset--color--teal);display:inline-flex;align-items:center;justify-content:center}

/* Block styles */
.is-style-dtdh-card,.is-style-dtdh-card-lift{background:var(--wp--preset--color--paper);border:1px solid var(--wp--preset--color--line);border-radius:22px;overflow:hidden}
.is-style-dtdh-card:not(.dtdh-post-card):not(.dtdh-event):not(.dtdh-chat){padding:1.25rem 1.4rem}
.is-style-dtdh-card-lift{transition:transform .2s,box-shadow .2s;display:flex;flex-direction:column}
.is-style-dtdh-card-lift:hover{transform:translateY(-3px);box-shadow:var(--wp--preset--shadow--soft)}
.is-style-dtdh-card-lift>.wp-block-group:last-child{flex:1;display:flex;flex-direction:column}
.is-style-dtdh-card-lift .dtdh-more{margin-top:auto}
.is-style-dtdh-arch img{border:6px solid var(--wp--preset--color--paper);border-radius:28px 28px 220px 220px/28px 28px 64px 64px;box-shadow:var(--wp--preset--shadow--deep);width:100%;height:auto}
.is-style-dtdh-kicker{font-weight:600;font-family:var(--wp--preset--font-family--body);margin:0}
.is-style-dtdh-chip{display:inline-block;width:auto;align-self:flex-start;background:var(--wp--preset--color--sand);color:var(--wp--preset--color--terracotta-dark);font-weight:600;font-size:.9rem;padding:.35rem .9rem;border-radius:999px}
.dtdh-chip--gold{background:var(--wp--preset--color--gold);color:var(--wp--preset--color--ink)}
.is-style-dtdh-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:4px}
.is-style-dtdh-links li{border-radius:10px;padding:.45rem .8rem;font-size:.95rem}
.is-style-dtdh-links a{color:var(--wp--preset--color--ink);text-decoration:none}
.is-style-dtdh-links a:hover{color:var(--wp--preset--color--terracotta)}
.dtdh-links--teal-soft li{background:var(--wp--preset--color--teal-soft)}
.dtdh-links--ochre-soft li{background:var(--wp--preset--color--ochre-soft)}
.dtdh-links--indigo-soft li{background:var(--wp--preset--color--indigo-soft)}
.dtdh-links--ruby-soft li{background:var(--wp--preset--color--ruby-soft)}
.dtdh-more{font-weight:700}
.dtdh-more a{color:inherit;text-decoration:none}

/* Hero */
.dtdh-hero h1{margin:0;padding-top:.25em;line-height:1.4!important}
.dtdh-hero-search .wp-block-search__inside-wrapper{background:var(--wp--preset--color--paper);border:1px solid var(--wp--preset--color--line);border-radius:16px;padding:6px;box-shadow:0 8px 24px rgba(60,35,15,.06);max-width:600px}
.dtdh-hero-search .wp-block-search__input{border:0;background:transparent;font-size:1rem;padding-inline:.75rem}
.dtdh-hero-search .wp-block-search__button{background:var(--wp--preset--color--teal);border-radius:12px;margin:0;padding-inline:1.25rem}
.dtdh-quicklinks{color:var(--wp--preset--color--muted)}
.dtdh-quicklinks a{display:inline-block;margin:.25rem 0 .25rem .35rem;margin-inline:.35rem 0;padding:.3rem .8rem;border-radius:999px;background:var(--wp--preset--color--teal-soft);color:var(--wp--preset--color--teal);text-decoration:none}
.dtdh-quicklinks a:hover{background:#d3e5e1;color:var(--wp--preset--color--teal)}

/* Featured unit inside the dark band keeps its own button colours. */
.dtdh-feature a.dtdh-btn--outline{color:var(--wp--preset--color--terracotta)}
.dtdh-feature a.dtdh-btn--outline:hover{color:var(--wp--preset--color--terracotta-dark)}

/* Visits */
.dtdh-visit__img{margin:0;position:relative}
.dtdh-visit__img img{display:block;width:100%;height:auto}
.dtdh-visit__badge{position:absolute;top:14px;inset-inline-start:14px;margin:0;background:rgba(42,30,22,.82);color:#fff;font-size:.8rem;font-weight:700;padding:.25rem .65rem;border-radius:999px}

/* AI */
.dtdh-tool{margin:0;background:var(--wp--preset--color--ruby-soft);color:#6E211D;border-radius:12px;padding:.75rem .9rem;font-weight:500}
.dtdh-chat{padding:1.4rem!important}
.dtdh-chat__label{margin:0;color:var(--wp--preset--color--muted);border-bottom:1px solid #EFE3CF;padding-bottom:.6rem}
.dtdh-chat__q{align-self:flex-start;max-width:85%;margin:0;background:var(--wp--preset--color--teal);color:#fff;padding:.75rem 1rem;border-radius:16px 16px 4px 16px}
.dtdh-chat__a{align-self:flex-end;max-width:90%;margin:0;background:var(--wp--preset--color--sand);padding:.9rem 1rem;border-radius:16px 16px 16px 4px}
.dtdh-chat__a a{font-size:.9rem;font-weight:600}
[dir="rtl"] .dtdh-chat__q{border-radius:16px 16px 16px 4px}
[dir="rtl"] .dtdh-chat__a{border-radius:16px 16px 4px 16px}

/* Posts / events */
.dtdh-post-card .wp-block-post-featured-image{margin:0}
.dtdh-post-card .wp-block-post-title a,.dtdh-event .wp-block-post-title a{color:var(--wp--preset--color--ink);text-decoration:none}
.dtdh-post-card .wp-block-post-title a:hover,.dtdh-event .wp-block-post-title a:hover{color:var(--wp--preset--color--terracotta)}
.dtdh-post-card .wp-block-post-title,.dtdh-event .wp-block-post-title{margin:0;font-family:var(--wp--preset--font-family--body);line-height:1.6}

/* Archive banner */
.dtdh-banner{background-image:url(../images/banner-palms.svg);background-repeat:no-repeat;background-position:center bottom;background-size:cover}
.dtdh-banner .wp-block-query-title{margin:0;font-size:var(--wp--preset--font-size--xx-large)}
.dtdh-banner .wp-block-term-description p{margin:0;max-width:620px}
.dtdh-banner .dtdh-crumbs ol{color:#C6D8D4}
.dtdh-banner .dtdh-crumbs [aria-current]{color:#FFFDF9}
.dtdh-overlap{margin-top:-3.5rem!important;position:relative;z-index:1}

/* Single unit */
.dtdh-unit-layout .wp-block-columns:has(>.wp-block-column:empty)>.wp-block-column{flex-basis:100%!important}
.dtdh-unit-layout .wp-block-column:empty{display:none}
.dtdh-unit-side .dtdh-oasis-card{position:relative;border-radius:22px;overflow:hidden;background:var(--wp--preset--color--ink)}
.dtdh-oasis-card .wp-block-image{margin:0}
.dtdh-oasis-card img{display:block;width:100%;height:auto}
.dtdh-oasis-card__text{position:absolute;inset-inline:0;bottom:0;padding:1rem 1.1rem;color:#fff;background:linear-gradient(to top,rgba(42,30,22,.85),rgba(42,30,22,0))}
.dtdh-oasis-card__text p{margin:0}
.dtdh-oasis-card__title{font-family:var(--wp--preset--font-family--display);font-size:1.6rem;font-weight:700}
.dtdh-context .dtdh-panel-heading{font-family:var(--wp--preset--font-family--body);font-size:1.2rem;margin:0}
.dtdh-context .wp-block-post-content{font-size:1.05rem;line-height:2}
.dtdh-prevnext a{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;padding:0 1rem;border:1px solid var(--wp--preset--color--line);border-radius:12px;background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink);text-decoration:none}
.dtdh-prevnext a:hover{border-color:var(--wp--preset--color--terracotta)}
@media (max-width:781px){
	.dtdh-unit-layout>.dtdh-unit-side{order:2}
}

/* Footer */
.dtdh-footer p{margin:0}
.dtdh-footer a{text-decoration:none}
.dtdh-footer__brand{font-family:var(--wp--preset--font-family--display);font-weight:700;font-size:1.9rem;letter-spacing:.08em}
.dtdh-footer__title{font-family:var(--wp--preset--font-family--body);font-size:1rem;margin:0 0 .25rem}
.dtdh-footer__sep{opacity:.25;margin-block:1.75rem 1rem}

/* CTA */
.dtdh-cta h2{margin:0}

/* Pagination */
.wp-block-query-pagination{gap:.5rem;margin-top:2rem}
.wp-block-query-pagination a,.wp-block-query-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 .75rem;border-radius:12px;border:1px solid var(--wp--preset--color--line);background:var(--wp--preset--color--paper);color:var(--wp--preset--color--ink);text-decoration:none}
.wp-block-query-pagination .page-numbers.current{background:var(--wp--preset--color--teal);border-color:var(--wp--preset--color--teal);color:#fff}

/* Accessibility */
:where(a,button,input,select,textarea):focus-visible{outline:3px solid #B7791F;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* Print: the unit card prints cleanly as a document (and saves to PDF). */
@media print{
	header.wp-block-template-part,footer.wp-block-template-part,.dtdh-unit-side,.dtdh-prevnext,.wp-block-search{display:none!important}
	body{background:#fff}
	.dtdh-unit-layout>.wp-block-column{flex-basis:100%!important}
}

/* ===== v1.1 — matched to the platform mock-up ===== */
:root{--dtdh-card-line:#ECE1D0;--dtdh-card-shadow:0 1px 2px rgba(60,35,15,.06),0 6px 18px rgba(60,35,15,.05)}

/* Mask icons (classes from icons.css) */
.dtdh-nav .wp-block-navigation-item[class*="dtdh-i-"]>.wp-block-navigation-item__content::before,
.dtdh-pillar__head::after,.dtdh-pillar__list li::after,.dtdh-context .dtdh-stitle::after{
	content:"";display:inline-block;flex:none;width:20px;height:20px;background:currentColor;
	-webkit-mask:var(--dtdh-i) center/contain no-repeat;mask:var(--dtdh-i) center/contain no-repeat}

/* Photo masthead */
.dtdh-masthead{color:#fff}
.dtdh-masthead .wp-block-cover__inner-container{width:100%;max-width:none}
.dtdh-masthead .wp-block-group{margin-block:0}
.dtdh-brand__mark{margin:0}
.dtdh-brand__title,.dtdh-brand__title a{font-family:var(--wp--preset--font-family--body)!important;font-size:1.65rem!important;font-weight:700!important;color:#fff!important;text-decoration:none;letter-spacing:0;line-height:1.2}
.dtdh-brand__tagline{color:#EFE6D6!important;font-size:.92rem!important;margin:0}
.dtdh-masthead__tools{align-items:center}
.dtdh-lang{margin:0}
.dtdh-lang a{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:10px;background:rgba(15,24,20,.55);color:#fff;font-weight:700;font-size:.85rem;text-decoration:none}
.dtdh-lang a::after{content:"";width:7px;height:7px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-2px)}
.dtdh-masthead .dtdh-header-search .wp-block-search__inside-wrapper{background:#fff;border:0;border-radius:999px;padding:4px;box-shadow:0 4px 16px rgba(0,0,0,.2)}
.dtdh-masthead .dtdh-header-search .wp-block-search__input{color:var(--wp--preset--color--ink);font-size:.95rem}
.dtdh-masthead .dtdh-header-search .wp-block-search__button{background:var(--wp--preset--color--teal);color:#fff;width:40px;min-width:40px;height:40px;border-radius:50%}
.dtdh-navband{background:rgba(12,20,16,.5);backdrop-filter:blur(2px);padding:.35rem var(--wp--preset--spacing--40)}
.dtdh-masthead .dtdh-nav{justify-content:center}
.dtdh-masthead .dtdh-nav .wp-block-navigation__container{gap:.4rem 1.6rem}
.dtdh-masthead .dtdh-nav .wp-block-navigation-item__content{display:inline-flex;align-items:center;gap:8px;color:#fff;padding:.6rem .5rem;font-size:.98rem;font-weight:500;border-radius:8px;background:none}
.dtdh-masthead .dtdh-nav .wp-block-navigation-item__content:hover{background:rgba(255,255,255,.12);color:#fff}
.dtdh-masthead .dtdh-nav .current-menu-item>.wp-block-navigation-item__content{background:rgba(255,255,255,.14)}
.dtdh-masthead .wp-block-navigation__responsive-container-open{color:#fff}
.dtdh-masthead .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{color:var(--wp--preset--color--paper)}

/* Single unit page */
.dtdh-unitpage{background:var(--wp--preset--color--cream)}
.dtdh-unitpage .wp-block-columns{margin-bottom:0}
.dtdh-unit-head .wp-block-dtdh-unit-badge{display:flex;justify-content:flex-start}
.dtdh-unit-title{margin:0;font-family:var(--wp--preset--font-family--body)!important;font-size:1.95rem!important;font-weight:700;line-height:1.35;padding-bottom:.7rem;position:relative}
.dtdh-unit-title::after{content:"";position:absolute;bottom:0;inset-inline-start:0;width:48px;height:3px;border-radius:3px;background:var(--wp--preset--color--terracotta)}
.dtdh-unitpage .wp-block-dtdh-breadcrumbs{min-height:42px;display:flex;align-items:center}
.dtdh-bigpanel{background:var(--wp--preset--color--paper);border:1px solid var(--dtdh-card-line);border-radius:14px;padding:18px 20px;box-shadow:var(--dtdh-card-shadow)}
.dtdh-context{background:#F7F1E6;border:1px solid #EEE3D1;border-radius:12px;padding:14px 18px}
.dtdh-context .dtdh-stitle{margin:0;color:var(--wp--preset--color--ink)}
.dtdh-context .dtdh-stitle::after{background:#6B4A2E}
.dtdh-context .wp-block-post-content{font-size:1rem;line-height:2;color:#3C2E23}
.dtdh-context .wp-block-post-content p{margin:0}
.dtdh-sidecard{background:var(--wp--preset--color--paper);border:1px solid var(--dtdh-card-line);border-radius:14px;overflow:hidden;box-shadow:var(--dtdh-card-shadow)}
.dtdh-sidecard__img{margin:0}
.dtdh-sidecard__img img{display:block;width:100%;height:56px;object-fit:cover;-webkit-mask:linear-gradient(to bottom,#000 55%,transparent);mask:linear-gradient(to bottom,#000 55%,transparent)}
.dtdh-sidecard__body{padding:4px 12px 14px}
.dtdh-sidecard__sep{border:0;border-top:1px solid #E6CFB4!important;margin:14px 4px!important;opacity:1}
.dtdh-oasis{overflow:hidden}
.dtdh-oasis p{margin:0;color:#fff}
.dtdh-oasis__title{font-family:var(--wp--preset--font-family--body);font-weight:700;font-size:1.35rem}
@media (max-width:781px){.dtdh-unit-layout>.dtdh-unit-side{order:2}}

/* Pillar cards, as in the site map */
.dtdh-pillars-section{background:var(--wp--preset--color--cream)}
.dtdh-pillars{gap:1.25rem!important}
.dtdh-pillar{--pc:#2E6A33;--ps:#E3EFDF;background:var(--wp--preset--color--paper);border:1px solid var(--dtdh-card-line);border-radius:16px;overflow:hidden;box-shadow:var(--dtdh-card-shadow);display:flex;flex-direction:column}
.dtdh-pillar--maps{--pc:#C9631A;--ps:#FBEBDC}
.dtdh-pillar--visits{--pc:#1F3F86;--ps:#E3EAF6}
.dtdh-pillar--ai{--pc:#8E1F2A;--ps:#F6E1E1}
.dtdh-pillar__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:14px 18px;background:var(--pc);color:#fff!important;font-family:var(--wp--preset--font-family--body)!important;font-size:1.2rem!important;font-weight:700}
.dtdh-pillar__head::after{width:30px;height:30px}
.dtdh-pillar__img{margin:0;position:relative;border-bottom:3px solid var(--pc)}
.dtdh-pillar__img img{display:block;width:100%;aspect-ratio:330/110;object-fit:cover}
.dtdh-pillar__img figcaption{position:absolute;top:8px;left:50%;transform:translateX(-50%);margin:0;padding:.2rem .9rem;border-radius:999px;background:#F4D9A0;color:#3B2A12;font-weight:700;font-size:.85rem;white-space:nowrap}
.dtdh-pillar__list{list-style:none;margin:0;padding:12px;display:flex;flex-direction:column;gap:8px}
.dtdh-pillar__list li{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:.6rem .9rem;border:1px solid color-mix(in srgb,var(--pc) 22%,#fff);background:color-mix(in srgb,var(--ps) 45%,#fff);border-radius:8px;color:var(--pc)}
.dtdh-pillar__list li::after{width:22px;height:22px}
.dtdh-pillar__list a{color:var(--wp--preset--color--ink);text-decoration:none;font-size:.98rem}
.dtdh-pillar__list a:hover{color:var(--pc)}

/* Credit */
.dtdh-credit{color:#E9DCC6}
.dtdh-credit strong{color:var(--wp--preset--color--gold)}

/* Compact density on the unit page, as in the mock-up */
.dtdh-unitpage{font-size:.94rem}
.dtdh-unitpage .dtdh-unit-title{font-size:1.65rem!important}
.dtdh-unitpage .dtdh-script__text{font-size:1.12rem;padding:6px 4px}
.dtdh-unitpage .dtdh-script--tfng .dtdh-script__text{font-size:1.15rem;white-space:nowrap;overflow-wrap:normal}
.dtdh-unitpage .dtdh-script--lat .dtdh-script__text{white-space:nowrap}
.dtdh-unitpage .dtdh-script__label{width:5.6rem;font-size:.82rem;padding:6px}
.dtdh-unitpage .dtdh-btn{min-height:50px;font-size:.92rem;padding:.5rem .7rem;gap:.5em;white-space:nowrap}
.dtdh-unitpage .dtdh-btn:disabled{opacity:.92}
.dtdh-unitpage .dtdh-genre{padding:9px 10px;gap:10px}
.dtdh-unitpage .dtdh-genre__name{font-size:.92rem}
.dtdh-unitpage .dtdh-genre__icon svg{width:20px;height:20px}
.dtdh-unitpage .dtdh-topic{font-size:.84rem;padding:8px 8px}
.dtdh-unitpage .dtdh-topic__name{gap:10px}
.dtdh-unitpage .dtdh-topic svg{width:20px;height:20px}
.dtdh-unitpage .dtdh-side__title{font-size:.98rem}
.dtdh-unitpage .dtdh-meaning__text{font-size:1.05rem}
.dtdh-unitpage .dtdh-meaning__head{font-size:.85rem}
.dtdh-unitpage .dtdh-docs dd,.dtdh-unitpage .dtdh-docs dt{font-size:.86rem}
.dtdh-unitpage .dtdh-docs__row{padding:9px 0}
.dtdh-unitpage .dtdh-stitle{font-size:1rem}
