/* PilotTrain book lists (.ptsh): the two book categories, "Print Practice Exams" and "Theory &
   Guides". The same family as the About us and pricing pages: a short navy hero, then a ruled
   column. The hero and the strips are printed by the theme (inc/pt-shop.php); the books themselves
   are WooCommerce's own list, restyled here as cards. No script. */

body.ptsh-page{
  --ink:#0a1a2b; --text:#3d4c60; --muted:#66768a; --line:#dde5ee; --bg:#f6f8fb; --card:#fff;
  --blue:#2f7bf0; --blue-dk:#1f5fcc; --a:#5d8ce6; --b:#a9c8f5; --navy:#071320;
  --dline:rgba(255,255,255,.12); --dtext:#cfdbe8; --ddim:#9fb3c8;
}

/* ---------- the page's own boxes step aside: edge to edge, on the pale ground ---------- */
body.ptsh-page .site.grid-container, body.ptsh-page .site-content, body.ptsh-page .content-area, body.ptsh-page .site-main{max-width:none; width:100%; margin:0; padding:0;}
body.ptsh-page .site-content{display:block;}
body.ptsh-page .woocommerce-archive-wrapper, body.ptsh-page .woocommerce-archive-wrapper > .inside-article{margin:0; padding:0; border-radius:0; background:var(--bg); box-shadow:none;}
body.ptsh-page .woocommerce-archive-wrapper .entry-content{margin:0;
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; font-size:16px; line-height:1.6; color:var(--text); -webkit-font-smoothing:antialiased;}
body.ptsh-page .woocommerce-breadcrumb{display:none;}
body.ptsh-page .woocommerce-products-header{margin:0; padding:0;}

.ptsh, .ptsh *, .ptsh *::before, .ptsh *::after{box-sizing:border-box;}
.ptsh{font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; font-size:16px; line-height:1.6; color:var(--text); -webkit-font-smoothing:antialiased;}
.ptsh h1, .ptsh h2, .ptsh h3, .ptsh p{margin:0; padding:0; font-family:inherit; text-transform:none; border:0; background:none;}
.ptsh h1::before, .ptsh h1::after, .ptsh h2::before, .ptsh h2::after, .ptsh h3::before, .ptsh h3::after{content:none; display:none;}
.ptsh svg{display:block;}
.ptsh a, .ptsh a:hover, .ptsh a:focus, .ptsh a:visited{text-decoration:none; color:inherit;}
.ptsh a:focus-visible{outline:3px solid var(--a); outline-offset:3px; border-radius:8px;}
.ptsh strong{font-weight:700; color:var(--ink);}

/* =============================================================
   1. HERO
   ============================================================= */
.ptsh-hero{
  text-align:center; color:#e9f1f8; padding:40px 16px 40px;
  background:
    radial-gradient(80% 110% at 50% -30%, rgba(47,123,240,.34), rgba(47,123,240,0) 64%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/28px 28px,
    var(--navy);
}
.ptsh-hero-in{max-width:820px; margin:0 auto;}
.ptsh-pill{
  display:inline-flex; align-items:center; gap:7px; padding:6px 13px; border-radius:999px;
  font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; line-height:1.2; color:var(--b);
  border:1px solid var(--dline); background:rgba(255,255,255,.05);
}
.ptsh-pill svg{width:14px; height:14px;}
.ptsh-hero h1{margin:18px 0 0; font-size:clamp(30px,6.6vw,54px); font-weight:800; letter-spacing:-.028em; line-height:1.08; color:#fff; text-wrap:balance;}
.ptsh-grad{background:linear-gradient(90deg,var(--a),var(--b)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.ptsh-sub{max-width:620px; margin:14px auto 0; font-size:clamp(15px,2vw,17.5px); line-height:1.55; color:var(--ddim); text-wrap:balance;}
.ptsh-hero .ptsh-sub strong{color:#fff;}
/* the other shelf: two tabs under the words */
.ptsh-tabs{display:inline-flex; gap:4px; margin-top:24px; padding:4px; border-radius:14px; border:1px solid var(--dline); background:rgba(255,255,255,.05);}
.ptsh-tabs a, .ptsh-tabs a:visited, .ptsh-tabs span{display:inline-flex; align-items:center; min-height:40px; padding:0 15px; border-radius:10px; font-size:14px; font-weight:700; line-height:1.2; color:var(--dtext);}
.ptsh-tabs a:hover{color:#fff; background:rgba(255,255,255,.08);}
.ptsh-tabs span{color:var(--ink); background:#fff;}

/* =============================================================
   2. THE STRIP UNDER IT
   ============================================================= */
.ptsh-body{max-width:1200px; margin:0 auto; border-left:1px solid var(--line); border-right:1px solid var(--line);}
.ptsh-proof{display:grid; grid-template-columns:minmax(0,1fr); gap:1px; background:var(--line); border-bottom:1px solid var(--line);}
.ptsh-proof > div{display:flex; gap:14px; align-items:flex-start; padding:20px 20px; background:var(--bg);}
.ptsh-pic{flex:none; width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:#fff; border:1px solid var(--line); color:var(--blue); box-shadow:0 1px 2px rgba(10,26,43,.04);}
.ptsh-pic svg{width:20px; height:20px;}
.ptsh-proof h3{font-size:16.5px; font-weight:700; letter-spacing:-.01em; line-height:1.3; color:var(--ink);}
.ptsh-proof p{margin-top:4px; font-size:14.5px; line-height:1.5; color:var(--muted);}

/* the plugin's notices (a holiday notice, printed to order) keep to the column */
body.ptsh-page .woocommerce-products-header .ptbs{max-width:1200px; margin:0 auto; padding:20px 16px 0;}

/* =============================================================
   3. THE BOOKS
   ============================================================= */
body.ptsh-page #wc-column-container{max-width:1200px; margin:0 auto; padding:28px 16px 44px; border-left:1px solid var(--line); border-right:1px solid var(--line);}
body.ptsh-page #wc-column-container ul.products{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; padding:0;}
body.ptsh-page #wc-column-container ul.products::before, body.ptsh-page #wc-column-container ul.products::after{content:none; display:none;}
body.ptsh-page #wc-column-container ul.products li.product{
  display:flex; flex-direction:column; float:none; width:auto; margin:0; padding:12px 12px 12px; text-align:left;
  border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:0 1px 2px rgba(10,26,43,.04);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
body.ptsh-page #wc-column-container ul.products li.product:hover{background:var(--card); border-color:#c5d6ec; box-shadow:0 14px 30px rgba(10,26,43,.10); transform:translateY(-2px);}
body.ptsh-page #wc-column-container li.product a.woocommerce-loop-product__link{display:flex; flex-direction:column; flex:1 1 auto; color:inherit; text-decoration:none;}
body.ptsh-page #wc-column-container li.product .wc-product-image{position:relative; height:0; margin:0 0 12px; padding:0 0 100%; border-radius:11px; background:linear-gradient(180deg,#eef3f9,#e6edf6);}
body.ptsh-page #wc-column-container li.product .inside-wc-product-image{position:absolute; inset:12px;}
body.ptsh-page #wc-column-container ul.products li.product a img{position:absolute; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; object-fit:contain; filter:drop-shadow(0 10px 14px rgba(10,26,43,.22));}
body.ptsh-page #wc-column-container ul.products li.product .woocommerce-loop-product__title{
  flex:1 1 auto; margin:0; padding:0 2px; font-family:inherit; font-size:15px; font-weight:700; letter-spacing:-.01em; line-height:1.3; color:var(--ink); text-align:left; overflow-wrap:anywhere;
}
body.ptsh-page #wc-column-container ul.products li.product .price{
  display:block; margin:8px 0 0; padding:0 2px; border-radius:0; background:none; font-size:19px; font-weight:800; letter-spacing:-.02em; line-height:1.2; color:var(--ink); text-align:left;
}
body.ptsh-page #wc-column-container li.product .wc-stripe-bnpl-shop-message:empty{display:none;}
body.ptsh-page #wc-column-container ul.products li.product .button{
  display:flex; align-items:center; justify-content:center; min-height:46px; margin:12px 0 0; padding:6px 8px; --wc-checkout:11px; border-radius:11px;
  font-family:inherit; font-size:14.5px; font-weight:700; line-height:1.2; white-space:normal; text-align:center; color:#fff; background:#0f2238; border:0; transition:background .16s ease;
}
body.ptsh-page #wc-column-container ul.products li.product .button:hover{background:#16314f; color:#fff;}
body.ptsh-page #wc-column-container ul.products li.product .button.product_type_external{color:var(--ink); background:#fff; box-shadow:inset 0 0 0 1.5px #c5d2e2;}
body.ptsh-page #wc-column-container ul.products li.product .button.product_type_external:hover{background:var(--bg); color:var(--ink);}
body.ptsh-page #wc-column-container ul.products li.product a.added_to_cart{display:block; margin:8px 0 0; padding:0; font-size:14px; font-weight:700; text-align:center; color:var(--blue-dk);}

/* =============================================================
   4. WHERE ELSE TO GO
   ============================================================= */
.ptsh-more{display:grid; grid-template-columns:minmax(0,1fr); gap:1px; background:var(--line); border-top:1px solid var(--line);}
.ptsh-more a, .ptsh-more a:visited{display:flex; align-items:center; gap:14px; padding:22px 20px; background:var(--bg); color:var(--ink);}
.ptsh-more a:hover{background:#fff; color:var(--ink);}
.ptsh-more .ptsh-pic{color:#fff; border:0; background:linear-gradient(135deg,#2a6fe0,#5d8ce6); box-shadow:0 8px 18px rgba(47,123,240,.28);}
.ptsh-more b{display:block; font-size:16.5px; font-weight:700; line-height:1.3; color:var(--ink);}
.ptsh-more small{display:block; margin-top:2px; font-size:14.5px; line-height:1.45; color:var(--muted);}
.ptsh-more .ptsh-go{margin-left:auto; flex:none; width:20px; height:20px; color:var(--blue);}

/* the narrowest phones */
@media (max-width:359px){
  body.ptsh-page #wc-column-container{padding-left:10px; padding-right:10px;}
  body.ptsh-page #wc-column-container ul.products{gap:8px;}
  body.ptsh-page #wc-column-container ul.products li.product{padding:10px;}
  body.ptsh-page #wc-column-container ul.products li.product .woocommerce-loop-product__title{font-size:14px;}
  body.ptsh-page #wc-column-container ul.products li.product .button{font-size:13.5px;}
  .ptsh-tabs a, .ptsh-tabs a:visited, .ptsh-tabs span{padding:0 11px; font-size:13.5px; white-space:nowrap;}
}

/* =============================================================
   WIDER SCREENS
   ============================================================= */
@media (min-width:700px){
  .ptsh-hero{padding:56px 16px 54px;}
  .ptsh-proof{grid-template-columns:repeat(3,minmax(0,1fr));}
  .ptsh-proof > div{padding:26px 26px;}
  .ptsh-more{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ptsh-more a{padding:28px 32px;}
  body.ptsh-page #wc-column-container{padding:40px 32px 64px;}
  body.ptsh-page #wc-column-container ul.products{grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px;}
  body.ptsh-page #wc-column-container ul.products li.product{padding:16px;}
  body.ptsh-page #wc-column-container ul.products li.product .woocommerce-loop-product__title{font-size:16.5px;}
}
@media (min-width:1000px){
  body.ptsh-page #wc-column-container ul.products{grid-template-columns:repeat(4,minmax(0,1fr));}
}
