/* NYSC Enhancements v1.0.9 — sitewide professional footer (Concept C: Rich Mega) */
/* Hide Kadence theme footer (reversible — deactivating plugin restores it) */
.site-footer{display:none!important}
/* Footer */
.nysc-ftr{background:linear-gradient(135deg,#041238,#0a2a66 60%,#0d3a8a);color:#c9d8f2;padding:64px 0 0;font-family:-apple-system,'Segoe UI',Roboto,sans-serif}
.nysc-ftr-wrap{width:min(1200px,calc(100% - 64px));margin:auto}
.nysc-ftr-news{display:flex;justify-content:space-between;align-items:center;gap:32px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:28px 36px;margin-bottom:48px;flex-wrap:wrap}
.nysc-ftr-news h3{color:#fff;font-size:20px;margin:0 0 6px}
.nysc-ftr-news p{font-size:14px;color:#8fb4ff;margin:0}
.nysc-ftr-nl{display:flex;gap:10px;flex-wrap:wrap}
.nysc-ftr-nl input{padding:13px 18px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;width:280px;font-size:14px}
.nysc-ftr-nl input::placeholder{color:#8fb4ff}
.nysc-ftr-nl button{padding:13px 28px;border-radius:999px;border:0;background:#ffc93c;color:#0a2a66;font-weight:800;font-size:14px;cursor:pointer}
.nysc-ftr-nl button:hover{background:#ffd75e}
.nysc-ftr-cols{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr 1fr;gap:40px;padding-bottom:48px}
.nysc-ftr-brand h3{color:#fff;font-size:20px;margin:0 0 12px}
.nysc-ftr-brand p{font-size:13px;line-height:1.7;color:#8fb4ff;margin:0}
.nysc-ftr-badges{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.nysc-ftr-badges span{font-size:11px;background:rgba(255,201,60,.15);color:#ffc93c;padding:5px 12px;border-radius:999px;font-weight:700}
.nysc-ftr h4{color:#fff;font-size:13px;letter-spacing:1.5px;text-transform:uppercase;margin:0 0 16px}
.nysc-ftr ul{list-style:none;margin:0;padding:0}
.nysc-ftr ul li{margin-bottom:9px}
.nysc-ftr ul a{color:#c9d8f2;text-decoration:none;font-size:13px}
.nysc-ftr ul a:hover{color:#ffc93c}
.nysc-ftr-disc{padding:0 0 24px;font-size:11px;color:#6b84b8;line-height:1.6}
.nysc-ftr-bottom{border-top:1px solid rgba(255,255,255,.12);padding:20px 0;display:flex;justify-content:space-between;font-size:12px;color:#8fb4ff;flex-wrap:wrap;gap:10px}
@media(max-width:900px){.nysc-ftr-cols{grid-template-columns:1fr 1fr}.nysc-ftr-news{padding:24px}.nysc-ftr-nl input{width:100%}}
@media(max-width:560px){.nysc-ftr-cols{grid-template-columns:1fr 1fr!important;gap:28px 16px!important}.nysc-ftr-brand{grid-column:1/-1!important}}

/* v1.0.10 rule removed in v1.0.22 — superseded by wrapper-scroll approach */








/* v1.0.16: Mobile content wider — 15px side margins on ALL pages. Desktop untouched. */
@media (max-width: 768px) {
  body .ny-wrap{width:calc(100% - 30px)!important;max-width:calc(100% - 30px)!important}
  .ny-section{padding-left:0!important;padding-right:0!important}
  body .entry-content-wrap{padding-left:15px!important;padding-right:15px!important}
}


/* v1.0.26: Card pattern for Single vs Married table — page 76 ONLY, mobile ONLY. */
@media (max-width: 768px) {
  table.ny-table.ny-cards-mobile,
  table.ny-table.ny-cards-mobile thead,
  table.ny-table.ny-cards-mobile tbody,
  table.ny-table.ny-cards-mobile tr,
  table.ny-table.ny-cards-mobile th,
  table.ny-table.ny-cards-mobile td{display:block!important;width:100%!important;table-layout:auto!important}
  table.ny-table.ny-cards-mobile thead{display:none!important}
  table.ny-table.ny-cards-mobile tr{margin-bottom:12px!important;border:1px solid #dbe4f0!important;border-radius:10px!important;overflow:hidden!important;background:#fff!important}
  table.ny-table.ny-cards-mobile td{padding:10px 14px!important;font-size:14px!important;border:none!important;text-align:right!important}
  table.ny-table.ny-cards-mobile td:first-child{background:#f0f5ff!important;font-weight:700!important;text-align:left!important;color:#1a2b4a!important;font-size:14px!important}
  table.ny-table.ny-cards-mobile td:not(:first-child):before{content:attr(data-label);float:left;font-weight:600;color:#5b6b85;font-size:13px}
  table.ny-table.ny-cards-mobile td:not(:first-child){border-top:1px solid #eef2f7!important}
}





/* v1.0.31: SITEWIDE mobile rules — ALL pages. Desktop untouched. */

/* Headings */
@media (max-width: 768px) {
  h1.ny-hero-h1{font-size:30px!important;line-height:1.15}
  .ny-section h2.ny-lead{font-size:22px!important;line-height:1.2}
  .ny-section h3{font-size:19px!important}
  .ny-hero-desc{font-size:16px!important}
}

/* Takeaway cards */
@media (max-width: 768px) {
  .pm-tk{padding:20px 8px}
  .pm-tk-n{font-size:23px!important;white-space:nowrap}
  .pm-tk-l{font-size:10.5px!important}
}

/* Callout wrapper padding */
@media (max-width: 768px) {
  div[style*="padding:0 32px"]{padding:0 16px!important}
}

/* Tables — safe generic (all column counts) */
@media (max-width: 768px) {
  .ny-section .ny-table-scroll{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .ny-section table.ny-table{font-size:13px!important}
  .ny-section table.ny-table th,
  .ny-section table.ny-table td{padding:8px 6px!important;word-wrap:break-word!important}
}

/* Paragraphs full width */
@media (max-width: 768px) {
  .ny-section .ny-wrap > p{max-width:100%!important}
  .ny-section p[style*="max-width"]{max-width:100%!important}
}

/* Location cards — 3 in one row */
@media (max-width: 768px) {
  .pm-compare{grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin-top:18px!important}
  .pm-loc{padding:14px 6px 12px!important;border-radius:10px!important}
  .pm-loc .pm-l-city{font-size:8.5px!important;letter-spacing:.06em!important;line-height:1.4!important}
  .pm-loc .pm-l-take{font-size:17px!important;margin:8px 0 2px!important;letter-spacing:0!important}
  .pm-loc .pm-l-mo{font-size:10px!important}
  .pm-loc .pm-l-tax{font-size:10px!important;margin-top:8px!important;padding-top:8px!important}
  .pm-badge{font-size:8px!important;padding:3px 8px!important;top:-10px!important;white-space:nowrap!important}
}

/* CTA button */
@media (max-width: 768px) {
  .pm-cta{padding:36px 20px!important;border-radius:16px!important}
  .pm-cta h3{font-size:24px!important}
  .pm-cta p{font-size:15px!important;margin-bottom:22px!important}
  .pm-cta a{font-size:16px!important;padding:14px 30px!important;white-space:nowrap!important}
}

/* v1.0.32: Page 57 H1 white on dark hero (was invisible dark-blue). Desktop + mobile. */
body.page-id-57 h1.ny-hero-h1{color:#fff!important}
body.page-id-57 h1.ny-hero-h1 span{color:#ffbb43!important}

/* v1.0.34: Fix double-margin on mobile — .ny-wrap inside padded .entry-content-wrap */
@media (max-width: 768px) {
  body .entry-content-wrap .ny-wrap{width:100%!important;max-width:100%!important}
}

/* v1.0.36: ALL body sections full-bleed on mobile (sitewide) */
@media (max-width: 768px) {
  body .ny-section:not(.ny-hero-bleed){width:100vw!important;max-width:100vw!important;position:relative;left:50%!important;transform:translateX(-50%)!important}
  body .ny-section:not(.ny-hero-bleed) .ny-wrap{width:calc(100% - 30px)!important;max-width:calc(100% - 30px)!important;margin:0 auto!important}
}

/* v1.0.38: 4-col tables fit on mobile — allow header wrap */
@media (max-width: 768px) {
  .ny-section table.ny-table[data-cols="4"]{table-layout:fixed!important;width:100%!important}
  .ny-section table.ny-table[data-cols="4"] th,
  .ny-section table.ny-table[data-cols="4"] td{font-size:11px!important;padding:6px 4px!important;word-wrap:break-word!important;overflow-wrap:break-word!important;white-space:normal!important;line-height:1.3!important}
}

/* v1.0.39: 3-col tables fit on mobile as normal tables (sitewide) */
@media (max-width: 768px) {
  .ny-section table.ny-table[data-cols="3"]{table-layout:fixed!important;width:100%!important}
  .ny-section table.ny-table[data-cols="3"] th,
  .ny-section table.ny-table[data-cols="3"] td{font-size:12px!important;padding:8px 6px!important;word-wrap:break-word!important;overflow-wrap:break-word!important;white-space:normal!important;line-height:1.35!important}
}

/* v1.0.39: ALL hero H1 white sitewide (was dark-blue on some pages) */
body.ny-site h1.ny-hero-h1{color:#ffffff!important}
body.ny-site h1.ny-hero-h1 span{color:#ffbb43!important}

/* v1.0.40: Style ny-compare-links as premium pills (sitewide) */
.ny-compare-links{background:#f0f5ff!important;border:1px solid #dbe4f0!important;border-radius:14px!important;padding:18px 20px!important;text-align:center!important;margin-top:22px!important}
.ny-compare-links a{display:inline-block!important;background:#fff!important;border:1px solid #c9d8f2!important;border-radius:999px!important;padding:9px 18px!important;margin:5px 4px!important;text-decoration:none!important;font-weight:700!important;font-size:14px!important;color:#0a2a66!important;transition:all .2s}
.ny-compare-links a:hover{background:#0a2a66!important;color:#fff!important;border-color:#0a2a66!important}
@media(max-width:768px){.ny-compare-links a{font-size:13px!important;padding:8px 14px!important}}

/* v1.0.43: 2-col tables fit on mobile (were scrolling) */
@media(max-width:768px){
.ny-section table.ny-table[data-cols="2"]{table-layout:fixed!important;width:100%!important}
.ny-section table.ny-table[data-cols="2"] th,
.ny-section table.ny-table[data-cols="2"] td{font-size:12px!important;padding:8px 6px!important;white-space:normal!important;overflow-wrap:break-word!important;line-height:1.35!important}
}

/* v1.0.44: Compact OT calculator on mobile */
@media(max-width:768px){
.ny-calculator{padding:16px 14px 12px!important}
.ny-calculator h2,.ny-calculator h3{font-size:20px!important;margin-bottom:6px!important}
.ny-calculator input[type="number"],.ny-calculator input[type="text"]{padding:10px 12px!important;font-size:16px!important}
.ny-calculator label{font-size:11px!important;margin-bottom:4px!important}
.ny-calculator .ny-quick-btn{padding:6px 12px!important;font-size:12px!important;margin:2px!important}
.ny-calculator > div{margin-bottom:10px!important}
}

/* v1.0.45: OT calculator hours side-by-side on mobile */
@media(max-width:768px){
.otc-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
.otc-grid .otc-amount input{font-size:17px!important;padding:10px 8px!important}
}

/* v1.0.46: Comparison cards side-by-side (desktop) */
@media(min-width:769px){
.pm-loc-wrap{display:grid!important;grid-template-columns:1fr 1fr!important;gap:22px!important;align-items:start!important}
}

/* v1.0.47: More padding on comparison cards */
.pm-loc{padding:40px 32px 36px!important}
.pm-loc-wrap{gap:28px!important;margin:20px 0!important}

/* v1.0.48: Smaller CTA button on mobile */
@media(max-width:768px){
.ot-cta{padding:24px 18px!important}
.ot-cta h2{font-size:22px!important}
.ot-cta p{font-size:14px!important}
.ot-cta a{font-size:15px!important;padding:12px 24px!important}
}

/* v1.0.50: Right-align table data sitewide (labels in first column stay left) */
.ny-table th,.ny-table td{text-align:right!important}
.ny-table th:first-child,.ny-table td:first-child{text-align:left!important}
