/* ============================================================
   About Dorsko — custom styles on top of Tailwind
   Same "Apple Design System" as dorskoformations.com
   ============================================================ */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #FBFBFD; }
::-webkit-scrollbar-thumb { background: #D2D2D7; border-radius: 10px; border: 2px solid #FBFBFD; }
::-webkit-scrollbar-thumb:hover { background: #86868B; }

.apple-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.apple-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 122, 255, 0.15);
}

.apple-button {
    background: #007AFF; color: white; font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 122, 255, 0.2);
}
.apple-button:hover { background: #0051D5; box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3); transform: translateY(-1px); }
.apple-button:active { transform: scale(0.98); }

.apple-glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.gradient-text {
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* --- Premium: shine sweep on primary buttons --- */
.apple-button { position: relative; overflow: hidden; }
.apple-button::after {
    content: ''; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg); transition: left 0.7s cubic-bezier(0.4,0,0.2,1); pointer-events: none;
}
.apple-button:hover::after { left: 150%; }

/* --- Premium: floating gradient orbs --- */
.orb { will-change: transform; animation: drift 16s ease-in-out infinite alternate; }
.orb-2 { animation-duration: 22s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,-26px) scale(1.1); } }

/* --- Premium: header shadow on scroll --- */
header.scrolled { background: rgba(255,255,255,0.85); box-shadow: 0 6px 24px rgba(0,0,0,0.06); }

/* --- Premium: active company card glow --- */
.card-glow { border-color: rgba(0,122,255,0.18) !important; box-shadow: 0 10px 34px rgba(0,122,255,0.10); }
.card-glow:hover { box-shadow: 0 22px 48px rgba(0,122,255,0.20); }

/* --- Premium: scroll reveal (JS-gated so content is always visible without JS) --- */
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in {
    opacity: 1; transform: none;
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
html.js .reveal.d1.in { transition-delay: 0.08s; }
html.js .reveal.d2.in { transition-delay: 0.16s; }
html.js .reveal.d3.in { transition-delay: 0.24s; }
html.js .reveal.d4.in { transition-delay: 0.32s; }

/* --- Premium: hero entrance (CSS-only, no JS dependency) --- */
.hero-rise > * { animation: heroRise 0.8s cubic-bezier(0.4,0,0.2,1) both; }
.hero-rise > *:nth-child(1) { animation-delay: 0.05s; }
.hero-rise > *:nth-child(2) { animation-delay: 0.15s; }
.hero-rise > *:nth-child(3) { animation-delay: 0.25s; }
.hero-rise > *:nth-child(4) { animation-delay: 0.35s; }
.hero-rise > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* --- News cover: gradient tile with big monogram letter --- */
.news-cover {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 85% 115%, color-mix(in srgb, var(--accent, #007AFF) 55%, transparent), transparent 60%),
        linear-gradient(135deg, color-mix(in srgb, var(--accent, #007AFF) 90%, #06121F), color-mix(in srgb, var(--accent, #007AFF) 45%, #06121F));
}
.news-cover::after {
    content: attr(data-letter);
    position: absolute;
    right: -6px; bottom: -30px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 120px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.16);
    line-height: 1;
    pointer-events: none;
}
.news-cover-lg::after { font-size: 210px; bottom: -56px; }

/* Featured cover: fills its grid cell, keeps a sensible height on mobile */
.cover-fill { min-height: 16rem; height: 100%; }

/* Article body: emphasized opening paragraph */
.article-lead > p:first-of-type { color: #1D1D1F; font-size: 1.25rem; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .orb { animation: none !important; }
    html.js .reveal { opacity: 1 !important; transform: none !important; }
    .hero-rise > * { animation: none !important; }
}

/* ==========================================================================
   Missing Tailwind utilities
   --------------------------------------------------------------------------
   assets/tailwind/site.css is a PREBUILT stylesheet — this project has no
   Tailwind build step, so any utility the templates use that was not in the
   source at build time silently does nothing.

   Everything below is a class the templates already reference but the compiled
   file does not define. Values follow Tailwind's own scale, so they behave
   exactly as if they had been compiled.

   If a Tailwind build is ever added to this project, delete this whole block
   and recompile instead.
   ========================================================================== */

/* --- spacing -------------------------------------------------------------- */
.pt-10 { padding-top: 2.5rem; }
.pb-14 { padding-bottom: 3.5rem; }
.pb-20 { padding-bottom: 5rem; }
.p-9   { padding: 2.25rem; }
.mt-7  { margin-top: 1.75rem; }
.mb-7  { margin-bottom: 1.75rem; }
.gap-7 { gap: 1.75rem; }
.gap-x-3 { column-gap: 0.75rem; }
.gap-x-4 { column-gap: 1rem; }
.space-y-5   > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }

/* --- sizing --------------------------------------------------------------- */
.h-18 { height: 4.5rem; }
.max-w-\[140px\] { max-width: 140px; }
.max-w-\[180px\] { max-width: 180px; }

/* --- type ----------------------------------------------------------------- */
.text-\[13px\] { font-size: 13px; line-height: 1.25rem; }
.text-\[32px\] { font-size: 32px; line-height: 1; }
.not-italic    { font-style: normal; }
.list-none     { list-style-type: none; }

/* --- colour --------------------------------------------------------------- */
.bg-gray-400    { background-color: #9CA3AF; }
.bg-gray-50\/50 { background-color: rgba(249, 250, 251, 0.5); }

/* --- position ------------------------------------------------------------- */
.left-5 { left: 1.25rem; }
.top-5  { top: 1.25rem; }

/* --- skip link: visible only while focused -------------------------------- */
.focus\:not-sr-only:focus {
    position: static; width: auto; height: auto;
    padding: 0.5rem 1rem; margin: 0; overflow: visible;
    clip: auto; white-space: normal;
}
.focus\:absolute:focus    { position: absolute; }
.focus\:top-2:focus       { top: 0.5rem; }
.focus\:left-2:focus      { left: 0.5rem; }
.focus\:z-\[100\]:focus   { z-index: 100; }
.focus\:rounded-lg:focus  { border-radius: 0.5rem; }
.focus\:bg-white:focus    { background-color: #fff; }
.focus\:px-4:focus        { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus        { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.focus\:text-sm:focus     { font-size: 0.875rem; line-height: 1.25rem; }
.focus\:font-bold:focus   { font-weight: 700; }
.focus\:text-primary:focus{ color: #0051d5; }
.focus\:shadow-lg:focus   { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }

/* --- responsive: sm (640px) ----------------------------------------------- */
@media (min-width: 640px) {
    .sm\:w-64          { width: 16rem; }
    .sm\:flex-shrink-0 { flex-shrink: 0; }
    .sm\:pt-0\.5       { padding-top: 0.125rem; }
}

/* --- responsive: md (768px) ----------------------------------------------- */
@media (min-width: 768px) {
    .md\:h-18      { height: 4.5rem; }
    .md\:pt-14     { padding-top: 3.5rem; }
    .md\:pt-16     { padding-top: 4rem; }
    .md\:pt-18     { padding-top: 4.5rem; }
    .md\:pt-20     { padding-top: 5rem; }
    .md\:pt-28     { padding-top: 7rem; }
    .md\:pb-16     { padding-bottom: 4rem; }
    .md\:pb-28     { padding-bottom: 7rem; }
    .md\:mb-12     { margin-bottom: 3rem; }
    .md\:p-8       { padding: 2rem; }
    .md\:p-9       { padding: 2.25rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

/* --- responsive: lg (1024px) ---------------------------------------------- */
@media (min-width: 1024px) {
    .lg\:gap-10 { gap: 2.5rem; }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:inline { display: inline; }
}

/* --- utilities added for the legal pages --------------------------------- */
.pl-5 { padding-left: 1.25rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }

@media (min-width: 1024px) {
    .lg\:sticky      { position: sticky; }
    .lg\:top-24      { top: 6rem; }
    .lg\:col-span-1  { grid-column: span 1 / span 1; }
    .lg\:col-span-3  { grid-column: span 3 / span 3; }
}

/* --- legal body: restore list and code styling Tailwind's reset removes --- */
.legal-body ul        { margin: 0.5rem 0; }
.legal-body li        { margin-bottom: 0.5rem; line-height: 1.7; }
.legal-body li::marker{ color: #86868B; }
.legal-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.875em;
    background: #F5F5F7;
    border: 1px solid #E5E5EA;
    border-radius: 4px;
    padding: 0.1em 0.4em;
}
.legal-body table  { border-collapse: collapse; }
.legal-body td,
.legal-body th     { vertical-align: top; }
.legal-body strong { color: #1D1D1F; font-weight: 600; }

/* ===========================================================================
 * Long-form article typography (Insights).
 *
 * The Markdown renderer emits h2/h3, p, ul, ol, li, strong and hr — nothing
 * else — so this is the complete set of rules the article body needs.
 * ======================================================================== */
.insight-body {
    color: #424245;
    font-size: 1.0625rem;
    line-height: 1.8;
}
.insight-body > * + *  { margin-top: 1.375rem; }

/* Opening paragraph reads as the lede. */
.insight-body > p:first-child {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: #1D1D1F;
}

.insight-body h2,
.insight-body h3 {
    font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #1D1D1F;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.28;
    text-wrap: balance;
    scroll-margin-top: 6.5rem;
}
.insight-body h2 { font-size: 1.5rem;   margin-top: 3rem; }
.insight-body h3 { font-size: 1.1875rem; margin-top: 2.25rem; }

.insight-body ul { list-style: disc;    padding-left: 1.35rem; }
.insight-body ol { list-style: decimal; padding-left: 1.5rem; }
.insight-body li           { margin-top: 0.625rem; }
.insight-body li::marker   { color: #0051d5; }
.insight-body li > strong:first-child { color: #1D1D1F; }
.insight-body strong       { color: #1D1D1F; font-weight: 650; }
.insight-body hr           { border: 0; border-top: 1px solid #E5E5EA; margin: 2.75rem 0; }

@media (min-width: 768px) {
    .insight-body           { font-size: 1.125rem; }
    .insight-body > p:first-child { font-size: 1.3125rem; }
    .insight-body h2        { font-size: 1.875rem; }
    .insight-body h3        { font-size: 1.3125rem; }
}

/* Contents rail on the article page. */
.toc-link {
    display: block;
    padding: 0.375rem 0 0.375rem 0.75rem;
    border-left: 2px solid #E5E5EA;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #86868B;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.toc-link:hover { color: #0051d5; border-left-color: #0051d5; }

/* ===========================================================================
 * Utilities the prebuilt stylesheet does not carry.
 *
 * Added for the Leadership, Responsibility, Careers and Insights pages.
 * Verified with tw-check.php: every class below is used in a template and
 * absent from assets/tailwind/site.css.
 * ======================================================================== */

/* --- colour ---------------------------------------------------------------*/
.bg-text-main    { background-color: #1D1D1F; }
.text-white\/50  { color: rgba(255, 255, 255, 0.50); }
.text-white\/85  { color: rgba(255, 255, 255, 0.85); }

/* --- spacing --------------------------------------------------------------*/
.gap-x-5   { column-gap: 1.25rem; }
.mb-1\.5   { margin-bottom: 0.375rem; }
.pl-11     { padding-left: 2.75rem; }
.px-3\.5   { padding-left: 0.875rem; padding-right: 0.875rem; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem; }

/* --- type -----------------------------------------------------------------*/
.text-\[26px\]     { font-size: 26px; }
.text-\[40px\]     { font-size: 40px; }
.text-\[52px\]     { font-size: 52px; }
.leading-\[1\.12\] { line-height: 1.12; }

/* --- hover: the arrow that steps forward ----------------------------------*/
.hover\:gap-2\.5:hover { gap: 0.625rem; }
.group:hover .group-hover\:gap-2   { gap: 0.5rem; }
.group:hover .group-hover\:gap-2\.5 { gap: 0.625rem; }
.group:hover .group-hover\:gap-3   { gap: 0.75rem; }

/* --- responsive: md (768px) ---------------------------------------------- */
@media (min-width: 768px) {
    .md\:p-10          { padding: 2.5rem; }
    .md\:pt-10         { padding-top: 2.5rem; }
    .md\:text-\[32px\] { font-size: 32px; line-height: 1.15; }
}

/* Emphasis inside article bodies. */
.insight-body em { font-style: italic; }
