/*
  TFD · Premium Desktop 2026-11-17
  Desktop-only progressive enhancement for the existing public Netlify site.
  The original mobile CSS, icons, event system, PWA and form behavior are unchanged.
*/
.tfdp-navbar, .tfdp-shortcuts { display: none; }

@media screen and (min-width:1024px) {
  :root {
    --tfdp-navy: #1a3143;
    --tfdp-blue: #82bfe1;
    --tfdp-gold: #b9975d;
    --tfdp-line: #e9e2d9;
    --tfdp-paper: #faf9f7;
    --tfdp-shadow: 0 10px 32px rgba(26,49,67,.042);
  }
  html { scroll-padding-top: 104px; }
  body { background: var(--tfdp-paper); color: var(--tfdp-navy); }
  .page {
    width: min(calc(100% - 104px), 1410px) !important;
    max-width:1410px !important;
    margin:0 auto;
    padding:0 0 54px;
    font-family:'DM Sans','Segoe UI',sans-serif;
  }

  /* Compact editorial navigation, with user's real logo image. */
  .tfdp-navbar {
    display:flex; align-items:center; gap:26px; min-height:88px;
    padding:15px 6px 16px;
    border-bottom:1px solid #eae6df;
  }
  .tfdp-brand {display:flex;align-items:center;gap:14px;color:var(--tfdp-navy);text-decoration:none;flex-shrink:0;}
  .tfdp-brand img {width:58px;height:58px;object-fit:contain;}
  .tfdp-brand-name {display:flex;align-items:center;gap:12px;}
  .tfdp-brand-name b {font-family:'Cormorant Garamond',Georgia,serif;font-size:32px;font-weight:700;line-height:1;letter-spacing:-.04em;}
  .tfdp-brand-name small {border-left:1px solid #c7ab81;padding-left:12px;font-size:10px;font-weight:750;letter-spacing:.21em;line-height:1.55;}
  .tfdp-navlinks {display:flex;align-items:center;gap:clamp(14px,2.4vw,39px);margin-left:auto;}
  .tfdp-navlinks :is(a,button) {
    color:var(--tfdp-navy);background:none;border:0;padding:11px 0;
    font-family:'DM Sans',sans-serif;font-weight:600;font-size:13px;
    text-decoration:none;white-space:nowrap;cursor:pointer;
    transition:color .2s ease;
  }
  .tfdp-navlinks :is(a,button):hover, .tfdp-navlinks :is(a,button):focus-visible {color:#438fbd;}
  .tfdp-navlinks .tfdp-nav-active {border-bottom:1.5px solid var(--tfdp-gold);font-weight:700;}
  .tfdp-navlinks .tfdp-contact-btn {
    border:1px solid #c9ab7d;border-radius:100px;
    padding:10px 21px;background:#fff;font-weight:700;
  }
  .tfdp-share {
    flex:0 0 auto;display:grid;place-items:center;width:35px;height:35px;
    border:1px solid #e5e7e8;border-radius:50%;background:#fff;
    color:#577d96;cursor:pointer;
  }
  .tfdp-share svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
  .tfdp-navlinks :is(a,button):focus-visible, .tfdp-share:focus-visible {outline:2px solid #82bfe1;outline-offset:4px;}

  /* Hero uses the current live text and title. Cursive only on the original 'lugar'. */
  .masthead {
    position:relative;overflow:visible;
    margin:0 auto;padding:56px 12px 33px;
    background:none;border:0;border-radius:0;box-shadow:none;text-align:center;
  }
  .masthead::before {
    content:'BIENVENIDO A TFD';display:block;
    font:700 12px/1.5 'DM Sans',sans-serif;letter-spacing:.31em;
    color:#947240;margin-bottom:13px;
  }
  .masthead::after {display:none;}
  .masthead-rule, .masthead .logo-stage, .masthead .church-title, .masthead .share {display:none;}
  .masthead h1 {
    max-width:none;margin:0 auto 24px;padding:0;
    color:var(--tfdp-navy);
    font:600 clamp(55px,5.6vw,79px)/1.11 'Cormorant Garamond',Georgia,serif;
    letter-spacing:-.035em;
    white-space:normal;
  }
  .masthead h1 em {
    color:#448fbd;
    font:400 1.23em/.8 'Allura','Brush Script MT',cursive;
    letter-spacing:0;
    margin:0 .025em;
    display:inline-block;
    vertical-align:-.02em;
  }
  .masthead .pastors {
    width:max-content;max-width:95%;margin:0 auto;
    padding:10px 23px;min-height:0;gap:9px;
    border-radius:100px;border:1px solid #dcc4a0;
    background:#fffaf5;box-shadow:none;
    color:#263d4e;
  }
  .masthead .pastors-caption {font:750 11px 'DM Sans',sans-serif;letter-spacing:.12em;color:#987442;}
  .masthead .pastors-names {font:600 15px 'DM Sans',sans-serif;color:var(--tfdp-navy);}
  .masthead .pastors-star {color:#b9975d;}

  /* Four quiet, premium navigation cards. Their graphics are CLONES of live app icons. */
  .tfdp-shortcuts {
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;
    margin:1px 0 31px;
  }
  .tfdp-card {
    min-width:0;min-height:129px;position:relative;
    display:flex;align-items:center;gap:17px;
    padding:18px 18px;
    background:#fff;border:1px solid #e7dcd0;border-radius:18px;
    color:var(--tfdp-navy);text-align:left;cursor:pointer;
    box-shadow:var(--tfdp-shadow);
    font-family:'DM Sans',sans-serif;text-decoration:none;
    transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
  }
  .tfdp-card:hover {transform:translateY(-3px);border-color:#9ec8df;box-shadow:0 15px 34px rgba(26,49,67,.075);}
  .tfdp-card:focus-visible {outline:2px solid #82bfe1;outline-offset:4px;}
  .tfdp-icon {
    width:78px;height:78px;flex:0 0 78px;display:grid;place-items:center;
    transition:transform .35s cubic-bezier(.2,.7,.3,1);
  }
  .tfdp-card:hover .tfdp-icon {transform:translateY(-3px);}
  .tfdp-icon > .envelope-illustration {display:block;transform:scale(.72);transform-origin:center;}
  .tfdp-icon > .portal-illustration {display:block;transform:scale(.92);transform-origin:center;}
  /* Original Ministry Portal lock and hinged doors cloned from this site. */
  .tfdp-icon > .access-symbol {display:block;flex:0 0 48px;transform:scale(1.25);transform-origin:center;}
  .tfdp-card:hover .access-door-left,
  .tfdp-card.is-previewing .access-door-left,
  .tfdp-card:focus-visible .access-door-left {transform:rotateY(-72deg);}
  .tfdp-card:hover .access-door-right,
  .tfdp-card.is-previewing .access-door-right,
  .tfdp-card:focus-visible .access-door-right {transform:rotateY(72deg);}
  .tfdp-card:hover .access-vault-lock,
  .tfdp-card.is-previewing .access-vault-lock,
  .tfdp-card:focus-visible .access-vault-lock {transform:translateY(-13px) scale(.65);opacity:0;}
  .tfdp-card:hover .access-vault-light,
  .tfdp-card.is-previewing .access-vault-light,
  .tfdp-card:focus-visible .access-vault-light {opacity:1;}
  .tfdp-icon > .tfd-giving-icon {width:66px;height:66px;border-radius:16px;}
  .tfdp-icon > .tfd-giving-icon svg {width:47px;height:47px;}
  .tfdp-icon .tfdp-calendar-svg {width:54px;height:54px;color:#4b8bab;}
  .tfdp-icon > .family-groups-icon {width:68px;height:68px;flex:0 0 auto;border-radius:16px;box-shadow:inset 0 1px #fff,0 4px 10px rgba(27,69,91,.10);}
  .tfdp-icon > .family-groups-icon .tfd-scene-svg {width:50px;height:50px;}

  .tfdp-icon .tfdp-calendar-svg .tfdp-calendar-gold {stroke:#b9975d;}
  .tfdp-card-content {flex:1;min-width:0;padding-right:6px;display:flex;align-items:center;}
  .tfdp-card-content strong {
    display:block;color:#1a3143;font:600 clamp(22px,1.7vw,27px)/1.18 'Cormorant Garamond',Georgia,serif;
    letter-spacing:-.01em;
  }
  .tfdp-card-arrow {font-size:24px;font-weight:400;color:#b9975d;flex-shrink:0;line-height:1;margin-left:4px;}
  .tfdp-card[aria-expanded="true"] {border-color:#82bfe1;background:#f7fcff;}
  /* Activate the ORIGINAL animations when their graphics are in the shortcut cards. */
  .tfdp-card:hover .envelope-flap {transform:rotateX(150deg);}
  .tfdp-card:hover .envelope-paper {transform:translateY(-9px);}
  .tfdp-card:hover .portal-left,
  .tfdp-card.is-previewing .portal-left,
  .tfdp-card:focus-visible .portal-left {transform:perspective(240px) rotateY(-28deg);}
  .tfdp-card:hover .portal-right,
  .tfdp-card.is-previewing .portal-right,
  .tfdp-card:focus-visible .portal-right {transform:perspective(240px) rotateY(28deg);}
  .tfdp-card:hover .portal-medallion,
  .tfdp-card.is-previewing .portal-medallion,
  .tfdp-card:focus-visible .portal-medallion {opacity:0;transform:scale(.7);}
  .tfdp-card:hover .portal-light,
  .tfdp-card.is-previewing .portal-light,
  .tfdp-card:focus-visible .portal-light {opacity:1;}

  /* The existing accordions remain authoritative; desktop buttons open them. */
  .details-section {display:none;}
  .details-section:has(> details[open]) {display:block;margin:0 0 28px;padding:0;}
  .details-section > details:not([open]) {display:none;}
  .details-section > details[open] {display:block;margin:0 0 20px;}
  .details-section > details > summary {display:none;}
  .details-section .letter-reveal,.details-section .portal-reveal {
    border:1px solid #e3d9c9;border-radius:20px;
    background:#fff;box-shadow:var(--tfdp-shadow);overflow:hidden;
  }
  .details-section .letter-sheet,.details-section .portal-gallery {max-width:none;}

  /* Actual next-service/event information remains owned by the original calendar JS. */
  .events-section:not([hidden]) {
    display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
    grid-template-areas:'next heading' 'next list' 'menu menu';
    grid-template-rows:auto 1fr auto;gap:0 27px;margin:0 0 42px;
    position:relative;align-items:stretch;
  }
  #tfdUpcomingService {
    grid-area:next;position:relative;isolation:isolate;
    min-height:238px;margin:0;padding:30px 48px;
    display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;
    text-align:center;
    border:1px solid #d9e8ef;border-radius:20px;
    background:linear-gradient(120deg,#f0f8fd,#fff 68%);
    box-shadow:var(--tfdp-shadow);color:#1a3143;overflow:hidden;
  }
  #tfdUpcomingService:before {
    content:'';position:absolute;z-index:-1;
    width:235px;height:235px;left:-32px;bottom:-34px;
    background:url('tfd-icon-original.png?v=cruz-20261109') center/contain no-repeat;
    opacity:.065;pointer-events:none;
  }
  #tfdUpcomingService:after {display:none;}
  #tfdUpcomingService .tfd-next-eyebrow {
    color:#97713e;font:750 11px/1.4 'DM Sans',sans-serif;
    letter-spacing:.25em;text-transform:uppercase;
  }
  #tfdUpcomingService strong {
    color:#1a3143;font:600 clamp(29px,3.1vw,44px)/1.13 'Cormorant Garamond',Georgia,serif;
    letter-spacing:-.015em;
  }
  #tfdUpcomingService small {
    color:#577185;font:500 14px/1.55 'DM Sans',sans-serif;
    max-width:480px;
  }
  .events-heading {
    grid-area:heading;display:flex;align-items:center;justify-content:space-between;
    margin:0;padding:24px 27px 10px;
    background:#fff;border:1px solid #e9e2d9;border-bottom:0;
    border-radius:20px 20px 0 0;box-shadow:0 4px 20px rgba(26,49,67,.026);
  }
  .events-heading-title {
    color:var(--tfdp-navy);
    font:600 clamp(28px,2.7vw,39px)/1.1 'Cormorant Garamond',Georgia,serif;
    letter-spacing:-.025em;
  }
  .events-month {
    color:#9b7845;font:750 10px/1.4 'DM Sans',sans-serif;letter-spacing:.16em;
    border-radius:30px;background:#faf5ed;padding:8px 12px;
  }
  .events-list {
    grid-area:list;align-content:start;min-width:0;gap:0;
    padding:10px 26px 25px;
    background:#fff;border:1px solid #e9e2d9;border-top:0;
    border-radius:0 0 20px 20px;box-shadow:var(--tfdp-shadow);
  }
  .events-list .event,
  .events-list .event.featured-event,
  .events-list .event:not(.featured-event) {
    min-height:72px;margin:0;padding:12px 5px;
    border:0;border-bottom:1px solid #ece8e2;border-radius:0;
    background:#fff;box-shadow:none;animation:none;
  }
  .events-list .event:last-child {border-bottom:0;}
  .events-list .event::before,.events-list .event::after {display:none!important;}
  .events-list .event .event-text strong {color:#1a3143;}
  .events-list .event .date {flex-shrink:0;border-radius:11px;}
  .events-list .event .event-star {color:#b9975d;}
  #tfdSundayMenu {grid-area:menu; margin:20px 0 0;border-radius:17px;}
  #tfdSundayMenu[hidden] {display:none!important;}

  /* Existing linkhub features continue below the editorial overview. */
  .main-section,.social-section,.tfd-contact-section,.tfd-message-section {margin-top:39px;}
  .main-section h2,.social-section h2,.tfd-contact-section h2,.tfd-message-section h2 {
    color:var(--tfdp-navy);
    font:600 34px/1.2 'Cormorant Garamond',Georgia,serif;
    letter-spacing:-.025em;
  }
  .main-section h2::before,.social-section h2::before,
  .tfd-contact-section h2::before,.tfd-message-section h2::before {height:20px;width:2px;}
  .main-section .list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:start;}
  .main-section .list > * {min-width:0;}
  .main-section .list > details[open] {grid-column:1/-1;}
  .main-section .link,.social-section .social-link {
    min-height:85px;border-radius:15px;border-color:#e9e2d9;background:#fff;
    box-shadow:var(--tfdp-shadow);
  }
  .social-section .social-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;}
  .tfd-contact-section .tfd-contact-intro,
  .tfd-contact-section .tfd-contact-grid,
  .tfd-message-section .tfd-message-card {width:100%;max-width:none;margin-inline:0;}
  .tfd-contact-section .tfd-contact-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch;}
  .tfd-contact-section .tfd-contact-email {grid-column:1 / -1;}
  .tfd-contact-section .tfd-contact-card {min-width:0;min-height:110px;padding:18px 22px;}
  .tfd-contact-section .tfd-contact-email {padding:18px 22px;}
  .tfd-message-section .tfd-message-card {max-width:none;margin-inline:0;}
  .tfd-install-choice {max-width:810px;margin:42px auto 0;}
  .tfd-install-footer {text-align:center;}
  .page > footer {margin-top:40px;padding:20px 0;border-top:1px solid var(--tfdp-line);}

  @media (max-width:1220px) {
    .page {width:calc(100% - 54px)!important;}
    .tfdp-navlinks {gap:14px;}
    .tfdp-brand-name small {display:none;}
    .tfdp-card {gap:16px;padding:18px 14px 18px 16px;}
    .tfdp-icon {width:64px;height:64px;flex-basis:64px;}
    .tfdp-card-content strong {font-size:21px;line-height:1.14;}
  }
}
@media (prefers-reduced-motion: reduce) {
  .tfdp-card, .tfdp-icon, .tfdp-navlinks :is(a,button) {transition:none!important;}
}

/* Premium unified: direct portal card uses its original animated lock-door icon. */
@media screen and (min-width:1024px){
 .tfdp-card:link,.tfdp-card:visited{color:#1a3143;text-decoration:none}
 .tfdp-portal-card:is(:hover,:focus-visible) .access-door-left{transform:rotateY(-55deg)}
 .tfdp-portal-card:is(:hover,:focus-visible) .access-door-right{transform:rotateY(55deg)}
 .tfdp-portal-card:is(:hover,:focus-visible) .access-vault-lock{opacity:0;transform:translateY(-9px) scale(.68)}
 .tfdp-portal-card:is(:hover,:focus-visible) .access-vault-light{opacity:1}
}

/* Grupos Familiares — scalable house in the premium desktop shortcut. */
@media screen and (min-width:1024px){
 .tfdp-icon > .family-groups-icon{overflow:visible;}
 .tfdp-icon > .family-groups-icon .family-house-svg{width:100%;height:100%;}
}
