/*
Theme Name: Pikapika Media
Theme URI: https://pika-pika.online/media/
Author: Codex
Description: Yellow electric media theme for Pika Pika buying articles.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: pikapika-media
*/

:root {
  --pp-yellow: #ffc400;
  --pp-yellow-soft: #fff5bf;
  --pp-orange: #ff7a00;
  --pp-orange-deep: #e64f00;
  --pp-green: #07b843;
  --pp-brown: #4b2416;
  --pp-muted: #7b5b48;
  --pp-line: #f0b637;
  --pp-paper: #fffdf5;
  --pp-shadow: 0 16px 38px rgba(141, 80, 0, 0.14);
  --pp-radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--pp-brown);
  background:
    radial-gradient(circle at 8% 90px, rgba(255, 255, 255, 0.72), transparent 16%),
    radial-gradient(circle at 92% 180px, rgba(255, 255, 255, 0.62), transparent 18%),
    linear-gradient(180deg, #ffe178 0, #fff6c8 310px, #fffaf0 680px, #fff 100%);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.85;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.pp-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    linear-gradient(180deg, rgba(255, 199, 0, 0.98), rgba(255, 182, 0, 0.95)),
    var(--pp-yellow);
  border-bottom: 4px solid #7ac943;
  box-shadow: 0 10px 24px rgba(111, 60, 0, 0.15);
}

.pp-header__sky {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  background:
    linear-gradient(90deg, rgba(255, 198, 0, 0.06), rgba(255, 198, 0, 0.2)),
    url("assets/header-bg-clean.png"),
    linear-gradient(180deg, #ffd447 0, #ffc400 65%, #a3dc5f 66%, #7cc64a 100%);
  background-size: auto, cover, auto;
  background-position: center, center 28%, center;
  background-repeat: no-repeat;
}

.pp-header__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 150px;
}

.pp-brand {
  display: block;
  align-items: center;
  flex: 0 0 min(500px, 42vw);
  min-width: 360px;
  text-decoration: none;
}

.pp-brand__lockup {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.pp-nav {
  min-width: 0;
  flex: 1;
}

.pp-nav__list {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-nav__list li {
  flex: 0 1 auto;
  min-width: 0;
}

.pp-nav a {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #48210f;
  font-weight: 900;
  font-size: clamp(0.82rem, 0.9vw, 0.94rem);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(192, 111, 0, 0.16);
}

.pp-nav a:hover,
.pp-nav a:focus-visible {
  outline: 3px solid #fff;
  color: var(--pp-orange-deep);
}

.pp-header-cta {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 8px 13px;
  border: 3px solid #fff;
  border-radius: 12px;
  background: linear-gradient(180deg, #22d55d, #08ac3d);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 0 #027d2a, 0 10px 18px rgba(0, 93, 33, 0.22);
}

.pp-header-cta span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.pp-header-cta strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
}

.pp-bolt,
.pp-heading-mark,
.pp-mini-icon,
.pp-arrow {
  display: inline-block;
  flex: 0 0 auto;
}

.pp-bolt {
  width: 18px;
  height: 28px;
  background: #ffe900;
  clip-path: polygon(58% 0, 18% 48%, 49% 48%, 34% 100%, 86% 37%, 55% 37%);
  filter: drop-shadow(0 2px 0 rgba(78, 48, 0, 0.35));
}

.pp-layout {
  width: min(1180px, calc(100% - 28px));
  margin: 30px auto 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.pp-main {
  min-width: 0;
}

.pp-breadcrumb {
  margin: 0 0 16px;
  color: var(--pp-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.pp-article,
.pp-card,
.pp-widget {
  border: 2px solid rgba(240, 182, 55, 0.78);
  border-radius: var(--pp-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--pp-shadow);
}

.pp-article {
  padding: clamp(20px, 4vw, 36px);
}

.pp-kicker {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9b1a, #ff6a00);
  color: #fff;
  font-weight: 900;
}

.pp-title {
  margin: 18px 0 10px;
  color: #4b1f12;
  font-size: clamp(1.72rem, 4vw, 2.75rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-bottom: 22px;
  color: var(--pp-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.pp-featured {
  overflow: hidden;
  margin: 0 0 22px;
  border: 3px solid #ffbf25;
  border-radius: 16px;
  background: var(--pp-yellow-soft);
}

.pp-featured img {
  width: 100%;
}

.pp-entry {
  font-size: 1rem;
}

.pp-entry h2 {
  position: relative;
  margin: 2.6em 0 1.2em;
  padding: 0.72em 0.85em 0.72em 1.25em;
  border-left: 8px solid var(--pp-orange);
  border-radius: 6px;
  background: linear-gradient(135deg, #ffe58a 0%, var(--pp-yellow) 100%);
  color: #3e2723;
  font-size: 1.32em;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: 0 3px 0 var(--pp-green), 0 10px 18px rgba(141, 80, 0, 0.1);
}

.pp-entry h2::before,
.pp-entry h2::after {
  content: none;
}

.pp-entry h3 {
  position: relative;
  margin: 2em 0 1em;
  padding: 0.28em 0 0.45em 0.78em;
  border-left: 5px solid var(--pp-green);
  border-bottom: 2px dotted rgba(255, 122, 0, 0.55);
  color: #3e2723;
  font-size: 1.14em;
  font-weight: 850;
  line-height: 1.45;
}

.pp-entry h3::before,
.pp-entry h3::after {
  content: none;
}

.pp-entry p {
  margin: 0 0 1.25em;
}

.pp-entry ul,
.pp-entry ol {
  padding-left: 1.4em;
}

.pp-entry .pp-list-box {
  margin: 18px 0 24px;
  padding: 16px 16px 12px;
  border: 2px solid #80bfff;
  border-radius: 14px;
  background: linear-gradient(135deg, #f7fbff 0, #e9f5ff 100%);
  box-shadow: 0 10px 22px rgba(20, 93, 166, 0.08);
}

.pp-entry .pp-list-box ul,
.pp-entry .pp-list-box ol {
  margin: 0;
}

.pp-entry .pp-list-box li {
  margin: 0 0 0.72em;
}

.pp-entry .pp-list-box li:last-child {
  margin-bottom: 0;
}

.pp-entry .pp-list-good {
  border-color: #80bfff;
  background: linear-gradient(135deg, #f7fbff 0, #e9f5ff 100%);
}

.pp-entry .pp-list-caution {
  border-color: #ffd166;
  background: linear-gradient(135deg, #fffdf2 0, #fff2bf 100%);
  box-shadow: 0 10px 22px rgba(145, 91, 0, 0.08);
}

.pp-entry .pp-list-prohibit {
  border-color: #ff9a9a;
  background: linear-gradient(135deg, #fff8f8 0, #ffe5e5 100%);
  box-shadow: 0 10px 22px rgba(160, 37, 37, 0.08);
}

.pp-entry .wp-block-table {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0;
  padding-top: 30px;
}

.pp-entry .wp-block-table::before {
  content: "横にスクロールできます";
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #f1c86a;
  border-radius: 999px;
  background: #fff7d4;
  color: #7a4a10;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.pp-entry table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 2px #f4c04d;
}

.pp-entry th,
.pp-entry td {
  padding: 12px 10px;
  border: 1px solid #f2d489;
  text-align: left;
}

.pp-entry th {
  background: linear-gradient(180deg, #ff8f00, #ff6a00);
  color: #fff;
}

.pp-aio-answer,
.pp-point-box,
.pp-caution-box {
  margin: 20px 0;
  padding: 16px;
  border: 2px solid #ffbf25;
  border-radius: 14px;
  background: linear-gradient(135deg, #fffdf5 0, #fff3b6 100%);
  box-shadow: 0 10px 22px rgba(141, 80, 0, 0.1);
}

.pp-point-box {
  border-color: #80bfff;
  background: linear-gradient(135deg, #f7fbff 0, #e9f5ff 100%);
  box-shadow: 0 10px 22px rgba(20, 93, 166, 0.08);
}

.pp-caution-box {
  border-color: #ffd166;
  background: linear-gradient(135deg, #fffdf2 0, #fff2bf 100%);
}

.pp-aio-answer p,
.pp-point-box p,
.pp-caution-box p {
  margin-bottom: 0.8em;
}

.pp-aio-answer p:last-child,
.pp-point-box p:last-child,
.pp-caution-box p:last-child {
  margin-bottom: 0;
}

.pp-marker,
.pp-marker-caution {
  padding: 0 0.18em;
  background: linear-gradient(transparent 58%, rgba(255, 220, 54, 0.82) 58%);
  color: inherit;
  font-weight: 900;
}

.pp-marker-good {
  padding: 0 0.18em;
  background: linear-gradient(transparent 58%, rgba(128, 191, 255, 0.72) 58%);
  color: inherit;
  font-weight: 900;
}

.pp-marker-prohibit {
  padding: 0 0.18em;
  background: linear-gradient(transparent 58%, rgba(255, 154, 154, 0.78) 58%);
  color: inherit;
  font-weight: 900;
}

.pp-entry .wp-block-buttons {
  margin: 26px 0 30px;
}

.pp-entry .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: 2px solid #0ba84a;
  border-radius: 999px;
  background: linear-gradient(180deg, #18d85f 0%, #09a844 100%);
  color: #fff;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 5px 0 #067b31, 0 14px 26px rgba(6, 123, 49, 0.22);
}

.pp-entry .wp-block-button__link::before {
  content: "";
  width: 13px;
  height: 22px;
  margin-right: 10px;
  background: linear-gradient(180deg, #fff36a, #ffb800);
  clip-path: polygon(60% 0, 12% 48%, 46% 48%, 30% 100%, 90% 35%, 56% 35%);
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.22));
}

.pp-entry .wp-block-button__link:hover,
.pp-entry .wp-block-button__link:focus-visible {
  transform: translateY(1px);
  background: linear-gradient(180deg, #20e86a 0%, #09b64a 100%);
  box-shadow: 0 4px 0 #067b31, 0 12px 22px rgba(6, 123, 49, 0.24);
}

.pp-provider-detail-link {
  margin: -6px 0 30px;
}

.pp-provider-detail-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 18px;
  border: 2px solid #ffb72a;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf5 0%, #fff4cf 100%);
  color: #6a3300;
  font-weight: 900;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(228, 132, 0, 0.26);
}

.pp-provider-detail-link a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.pp-entry .pp-lead {
  font-weight: 800;
  color: #5b2414;
}

.pp-step-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.pp-step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #f1d38b;
  border-radius: 12px;
  background: #fffaf0;
  font-weight: 800;
}

.pp-step-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #ff7a00;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
}

.pp-scroll-table {
  position: relative;
  margin: 20px 0 28px;
  overflow-x: auto;
  padding-top: 28px;
  -webkit-overflow-scrolling: touch;
}

.pp-scroll-table::before {
  content: attr(data-scroll-hint);
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f4ff;
  color: #12619c;
  font-size: 0.78rem;
  font-weight: 900;
}

.pp-scroll-table table {
  min-width: 720px;
  margin: 0;
}

.pp-rank-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin: 18px 0;
  padding: 16px;
  border: 2px solid #ffbf25;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 209, 0.96)),
    #fffdf5;
  box-shadow: 0 10px 24px rgba(96, 62, 9, 0.12);
}

.pp-rank-card__badge {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ff8a00, #ff5a00);
  color: #fff;
  font-size: 1.18rem;
  font-weight: 900;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #c94800;
}

.pp-rank-card__media {
  margin: 0 0 14px;
  overflow: hidden;
  border: 2px solid #ffe083;
  border-radius: 14px;
  background: #fff8d6;
  aspect-ratio: 16 / 9;
}

.pp-rank-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-rank-card--detailed {
  margin: 22px 0;
}

.pp-rank-card--detailed .pp-rank-card__body {
  min-width: 0;
}

/* Detailed verification cards without a rank badge should use the full card width. */
.pp-rank-card--detailed > .pp-rank-card__body:only-child {
  grid-column: 1 / -1;
}

.pp-rank-card h3 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--pp-brown);
  font-size: 1.32rem;
  line-height: 1.45;
  box-shadow: none;
}

.pp-rank-card h3::before,
.pp-rank-card h3::after {
  content: none;
}

.pp-rank-card p {
  margin: 0 0 12px;
}

.pp-rank-card__text {
  margin: 0 0 14px;
}

.pp-rank-card__text p {
  line-height: 1.9;
}

.pp-scroll-table--mini {
  margin: 12px 0 16px;
  padding-top: 24px;
}

.pp-scroll-table--mini table {
  min-width: 560px;
}

.pp-scroll-table--mini th {
  width: 150px;
  color: #7a3d00;
  white-space: nowrap;
}

.pp-scroll-table--mini td {
  font-weight: 800;
}

.pp-rank-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.pp-rank-card dl div {
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f1d38b;
}

.pp-rank-card dt {
  color: #8b4b00;
  font-size: 0.78rem;
  font-weight: 900;
}

.pp-rank-card dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.pp-rank-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pp-rank-card__button,
.pp-rank-card__detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.pp-rank-card__button {
  background: linear-gradient(180deg, #20e86a, #08ad3e);
  color: #fff;
  box-shadow: 0 4px 0 #067b31;
}

.pp-rank-card__detail {
  border: 2px solid #ffbf25;
  background: #fff;
  color: #6a3300;
}

.pp-callout {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 14px;
  align-items: center;
  margin: 26px 0;
  padding: 16px;
  border: 3px solid #ffbc26;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf5 0, #fff2b7 100%);
}

.pp-editor-box {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 30px 0 22px;
  padding: 18px;
  border: 2px solid #80bfff;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(247, 251, 255, 0.98), rgba(232, 246, 255, 0.96)),
    #f7fbff;
  box-shadow: 0 10px 24px rgba(20, 88, 140, 0.1);
}

.pp-editor-box__image {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 2px solid #ffbf25;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff8d8, #fff);
}

.pp-editor-box__image img {
  width: 94px;
  height: 94px;
  object-fit: cover;
  object-position: center top;
}

.pp-editor-box__label {
  display: inline-flex;
  margin: 0 0 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f4ff;
  color: #12619c;
  font-size: 0.82rem;
  font-weight: 900;
}

.pp-editor-box .pp-editor-box__name {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--pp-brown);
  font-size: 1.18rem;
  line-height: 1.35;
  box-shadow: none;
}

.pp-editor-box .pp-editor-box__name::before,
.pp-editor-box .pp-editor-box__name::after {
  content: none;
}

.pp-editor-box p:not(.pp-editor-box__label) {
  margin: 0 0 0.65em;
  color: var(--pp-text);
  font-size: 0.95rem;
}

.pp-editor-box p:last-child {
  margin-bottom: 0;
}

.pp-callout--text {
  grid-template-columns: 1fr;
  border-color: #80bfff;
  background: linear-gradient(135deg, #f7fbff 0, #e9f5ff 100%);
}

.pp-callout strong {
  color: var(--pp-orange-deep);
}

.pp-callout img {
  width: 170px;
  justify-self: end;
}

.pp-post-list {
  display: grid;
  gap: 20px;
}

.pp-archive-head {
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 2px solid rgba(240, 182, 55, 0.78);
  border-radius: var(--pp-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 198, 0.94)),
    var(--pp-yellow-soft);
}

.pp-archive-title {
  margin: 0;
  color: var(--pp-brown);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;
}

.pp-card {
  overflow: hidden;
}

.pp-card a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
}

.pp-card__thumb {
  min-height: 150px;
  background: linear-gradient(135deg, #ffe076, #ff9b1a);
}

.pp-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-card__body {
  padding: 18px 20px;
}

.pp-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.45;
}

.pp-card p {
  margin: 0;
  color: var(--pp-muted);
}

.pp-sidebar {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 20px;
}

.pp-widget {
  padding: 18px;
}

.pp-widget__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 1.28rem;
  line-height: 1.3;
}

.pp-widget__title::before {
  content: "";
  width: 14px;
  height: 24px;
  flex: 0 0 14px;
  background: linear-gradient(180deg, #ffd900, #ff7a00);
  clip-path: polygon(60% 0, 14% 49%, 47% 49%, 30% 100%, 88% 36%, 55% 36%);
  filter: drop-shadow(0 2px 0 rgba(230, 79, 0, 0.24));
}

.pp-rank-list,
.pp-link-list,
.pp-recent-cards {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-rank-list li,
.pp-link-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #f1d38b;
  border-radius: 10px;
  background: #fffaf0;
  color: var(--pp-brown);
  text-decoration: none;
  font-weight: 800;
}

.pp-link-list small {
  display: block;
  margin-top: 2px;
  color: var(--pp-muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.pp-mini-icon {
  width: 22px;
  height: 22px;
  border: 2px solid #ff9f00;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 0 45%, #ff9f00 46% 54%, transparent 55%),
    #fff4bf;
  box-shadow: inset 0 0 0 3px #fff;
}

.pp-arrow {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff0bd;
  position: relative;
}

.pp-arrow::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 7px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #df6900;
  border-right: 2px solid #df6900;
  transform: rotate(45deg);
}

.pp-empty {
  min-height: 48px;
  padding: 10px;
  border: 1px dashed #efc768;
  border-radius: 10px;
  background: #fffaf0;
  color: var(--pp-muted);
  font-weight: 800;
}

.pp-rank-num {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #ff7a00;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.pp-recent-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 86px;
  overflow: hidden;
  border: 1px solid #f1d38b;
  border-radius: 12px;
  background: #fffaf0;
  color: var(--pp-brown);
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(116, 69, 0, 0.08);
}

.pp-recent-card__thumb {
  display: block;
  min-height: 86px;
  background: linear-gradient(135deg, #ffe076, #ff9b1a);
}

.pp-recent-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-recent-card__body {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px 9px 0;
}

.pp-recent-card__cat {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ff8a00;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
}

.pp-recent-card__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pp-blog-card {
  margin: 24px 0;
}

.pp-blog-card a {
  display: grid;
  grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid #ffbf25;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 214, 0.98)),
    #fffdf5;
  color: var(--pp-brown);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(116, 69, 0, 0.12);
}

.pp-blog-card__thumb {
  display: block;
  min-height: 150px;
  background: linear-gradient(135deg, #ffe076, #ff9b1a);
}

.pp-blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pp-blog-card__body {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  padding: 16px 18px;
}

.pp-blog-card__label {
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff0bd;
  color: #8b4b00;
  font-size: 0.78rem;
  font-weight: 900;
}

.pp-blog-card__title {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.45;
}

.pp-blog-card__meta {
  color: #df6900;
  font-size: 0.82rem;
  font-weight: 900;
}

.pp-blog-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--pp-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pp-side-cta {
  border-color: #16bc45;
  background: linear-gradient(180deg, #fff 0, #eaffef 100%);
}

.pp-side-cta__media {
  display: block;
  overflow: hidden;
  margin: 0 0 12px;
  border: 2px solid #1fc85a;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
}

.pp-side-cta__media img {
  width: 100%;
}

.pp-side-cta__button,
.pp-bottom-cta__button {
  display: grid;
  min-height: 48px;
  place-items: center;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1fd85d, #07ad3d);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 5px 0 #07842f;
}

.pp-side-cta p {
  margin: 0;
  color: #386b2b;
  font-weight: 800;
}

.pp-mobile-provider-cta {
  display: none;
}

.pp-bottom-cta {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 3px solid #ffae00;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(90deg, #ffb700, #ffe66e);
  box-shadow: var(--pp-shadow);
}

.pp-bottom-cta img {
  width: 84px;
}

.pp-bottom-cta strong {
  display: block;
  color: #0ca83d;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.2;
}

.pp-footer {
  padding: 28px 16px;
  background: #fff7cf;
  border-top: 4px solid var(--pp-yellow);
  text-align: center;
  color: var(--pp-muted);
  font-weight: 700;
}

.pp-footer img {
  width: 160px;
  margin: 0 auto 8px;
  aspect-ratio: 3 / 1;
  object-fit: contain;
}

@media (max-width: 960px) {
  .pp-header__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    padding: 8px 0 10px;
  }

  .pp-brand {
    flex: 0 1 360px;
    min-width: 300px;
  }

  .pp-brand__lockup {
    max-width: 360px;
  }

  .pp-nav {
    order: 3;
    flex-basis: 100%;
  }

  .pp-nav__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 2px 8px;
    scrollbar-width: thin;
  }

  .pp-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    min-width: max-content;
    padding: 0 16px;
    white-space: nowrap;
  }

  .pp-layout {
    grid-template-columns: 1fr;
  }

  .pp-sidebar {
    position: static;
  }

  .pp-card a {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 640px) {
  body:has(.pp-mobile-provider-cta) {
    padding-bottom: 84px;
  }

  .pp-header__sky {
    min-height: 168px;
  }

  .pp-header__inner,
  .pp-layout,
  .pp-bottom-cta {
    width: min(100% - 20px, 1180px);
  }

  .pp-brand {
    flex: 1 1 100%;
    justify-content: center;
    min-width: 0;
  }

  .pp-brand__lockup {
    max-width: 290px;
    margin: 0 auto;
  }

  .pp-header-cta {
    width: 100%;
    max-width: 320px;
  }

  .pp-nav {
    width: 100%;
  }

  .pp-nav__list {
    gap: 6px;
  }

  .pp-nav a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .pp-article {
    padding: 16px 14px;
  }

  .pp-entry {
    font-size: 0.98rem;
    line-height: 1.95;
  }

  .pp-entry h2 {
    margin: 2.2em 0 1em;
    padding: 0.62em 0.75em 0.62em 1.05em;
    border-left-width: 7px;
    font-size: 1.22em;
    box-shadow: 0 2px 0 var(--pp-green), 0 8px 14px rgba(141, 80, 0, 0.08);
  }

  .pp-entry h3 {
    margin: 1.8em 0 0.9em;
    padding: 0.22em 0 0.4em 0.7em;
    border-left-width: 4px;
    font-size: 1.08em;
  }

  .pp-entry p {
    margin-bottom: 1.35em;
  }

  .pp-entry table {
    min-width: 680px;
  }

  .pp-callout,
  .pp-bottom-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pp-callout img,
  .pp-bottom-cta img {
    justify-self: center;
  }

  .pp-card a {
    grid-template-columns: 1fr;
  }

  .pp-editor-box {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: left;
  }

  .pp-editor-box__body {
    width: 100%;
  }

  .pp-rank-card {
    grid-template-columns: 1fr;
  }

  .pp-rank-card__badge {
    min-height: 46px;
  }

  .pp-rank-card dl {
    grid-template-columns: 1fr;
  }

  .pp-rank-card__links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pp-recent-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .pp-blog-card a {
    grid-template-columns: 1fr;
  }

  .pp-blog-card__thumb {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .pp-mobile-provider-cta {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 2px solid #0ba84a;
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 186, 0.98)),
      var(--pp-yellow-soft);
    box-shadow: 0 12px 28px rgba(70, 44, 0, 0.22);
  }

  .pp-mobile-provider-cta__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .pp-mobile-provider-cta__actions--single {
    grid-template-columns: 1fr;
  }

  .pp-mobile-provider-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: linear-gradient(180deg, #20e86a 0%, #08ad3e 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 0 #067b31;
    white-space: nowrap;
  }

  .pp-mobile-provider-cta__button::before {
    content: "";
    width: 10px;
    height: 18px;
    margin-right: 7px;
    background: linear-gradient(180deg, #fff36a, #ffb800);
    clip-path: polygon(60% 0, 12% 48%, 46% 48%, 30% 100%, 90% 35%, 56% 35%);
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.22));
  }

  .pp-mobile-provider-cta__subbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border: 2px solid #ffbf25;
    border-radius: 999px;
    background: #fffdf5;
    color: #6a3300;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 3px 0 rgba(228, 132, 0, 0.24);
    white-space: nowrap;
  }
}

/* Table scroll hints: hide on desktop and avoid duplicate labels inside wrapped tables. */
.pp-entry .wp-block-table {
  padding-top: 0;
}

.pp-entry .wp-block-table::before,
.pp-entry .pp-scroll-table .wp-block-table::before,
.pp-scroll-table::before {
  content: none;
  display: none;
}

.pp-entry .pp-scroll-table .wp-block-table {
  margin: 0;
  padding-top: 0;
  overflow: visible;
}

.pp-scroll-table {
  padding-top: 0;
}

@media (max-width: 767px) {
  .pp-scroll-table {
    padding-top: 28px;
  }

  .pp-scroll-table::before {
    content: attr(data-scroll-hint);
    display: inline-flex;
    align-items: center;
  }

  .pp-entry .pp-scroll-table .wp-block-table::before {
    content: none;
    display: none;
  }
}
