.usp-wrap{max-width:900px;margin:24px auto;padding:20px;border:1px solid #ddd;border-radius:12px;background:#fff;color:#222;font-family:inherit;box-sizing:border-box}
.usp-wrap *{box-sizing:border-box}
.usp-tabs{display:flex;gap:8px;margin:0 0 18px}
.usp-tab,.usp-submit{appearance:none;-webkit-appearance:none;border:1px solid #145da0;border-radius:7px;padding:11px 20px;background:#1769aa;color:#fff;cursor:pointer;font:inherit;line-height:1.4;min-height:46px}
.usp-tab.is-active,.usp-submit{background:#145da0;border-color:#145da0;color:#fff}
.usp-tab:not(.is-active){background:#fff;color:#145da0}
.usp-mode-description{margin:5px 0 12px;padding:0 2px;color:#687586;font-size:.78rem;line-height:1.5}
.usp-mode-description p{margin:0}
.usp-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.usp-field{display:flex;flex-direction:column;gap:7px;min-width:150px}
.usp-field[hidden]{display:none!important}
.usp-field label{display:block;font-size:.95rem;font-weight:700;line-height:1.5;color:#222}
.usp-field select{display:block;width:100%;min-width:150px;height:50px;min-height:50px;padding:8px 38px 8px 12px;border:1px solid #aaa;border-radius:7px;background-color:#fff;color:#222;font-family:inherit;font-size:16px;line-height:1.4;appearance:auto;-webkit-appearance:menulist;overflow:visible}
.usp-submit{min-width:150px}
.usp-result-title{font-size:1.2rem;font-weight:700;margin:10px 0}
.usp-summary{font-size:.95rem;color:#555;margin-bottom:12px}
.usp-table-scroll{overflow-x:auto}
.usp-table{width:100%;border-collapse:collapse;font-size:.95rem}
.usp-table th,.usp-table td{padding:11px 10px;border-bottom:1px solid #e5e5e5;text-align:right;white-space:nowrap}
.usp-table th{background:#f4f4f4}
.usp-table th:nth-child(2),.usp-table td:nth-child(2){text-align:left}
.usp-table .usp-total{font-weight:700}
.usp-empty{padding:18px;background:#f7f7f7;border-radius:6px}
@media(max-width:600px){.usp-wrap{padding:14px}.usp-controls{align-items:stretch}.usp-field,.usp-field select{width:100%}.usp-submit{width:100%}.usp-table th,.usp-table td{padding:9px 7px;font-size:.85rem}}

.usp-chart-section{margin:28px 0 24px;padding:16px 0;border-top:1px solid #ddd}
.usp-chart-section h3{font-size:1.15rem;margin:0 0 16px}
.usp-chart{width:100%;overflow-x:auto;padding:4px 0}
.usp-chart svg{display:block;width:100%;min-width:760px;height:auto;max-height:none}
.usp-chart-legend{display:flex;flex-wrap:wrap;gap:9px 16px;margin-top:12px}
.usp-legend-item{display:inline-flex;align-items:center;gap:6px;font-size:.85rem}
.usp-legend-item i{display:inline-block;width:12px;height:4px;border-radius:2px}

.usp-university-search{margin-top:32px;padding-top:22px;border-top:2px solid #e4e4e4}
.usp-university-search h3{font-size:1.2rem;margin:0 0 16px}
.usp-university-controls{margin-bottom:18px}
.usp-university-title{font-weight:700;font-size:1.05rem;margin:16px 0 12px}
.usp-university-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.usp-metric{border:1px solid #d9e2ea;border-radius:8px;padding:14px;background:#f7faff;display:flex;flex-direction:column;gap:7px;min-width:0}
.usp-metric-label{font-size:.88rem;color:#4b5563}
.usp-metric-value{font-size:1.45rem;color:#145da0;line-height:1.25}
@media(max-width:600px){.usp-university-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.usp-metric{padding:11px}.usp-metric-value{font-size:1.25rem}}

.usp-tabs{flex-wrap:wrap}.usp-tab{flex:1 1 0;min-width:90px}.usp-chart-section h3{font-size:1.15rem;margin:0 0 16px}

.usp-wrap{padding-bottom:125px}
.usp-scoring-rules{position:static;transform:none;width:100%;max-width:900px;margin:22px auto 0;padding:14px 16px 12px;border:1px solid #b8cde0;border-radius:10px;background:rgba(242,247,252,.98);box-shadow:none;color:#172b43}
.usp-scoring-rules h2{margin:0 0 6px;text-align:center;font-size:.94rem;font-weight:800;line-height:1.2;color:#123f68}
.usp-rule-groups{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.usp-rule-group{padding:7px 9px;border-radius:6px;background:#fff;border:1px solid #d4e1ee}
.usp-rule-group h3{margin:0 0 4px;text-align:center;font-size:.84rem;font-weight:800;color:#145da0}
.usp-rule-points{display:flex;justify-content:space-around;gap:5px;flex-wrap:wrap}
.usp-rule-points span{font-size:.82rem;white-space:nowrap;color:#1f2937}
.usp-rule-points strong{font-size:.86rem;font-weight:800}
.usp-scoring-rules p{margin:5px 0 0;text-align:center;font-size:.74rem;color:#4b5563}
@media(max-width:600px){.usp-wrap{padding-bottom:24px}.usp-scoring-rules{width:100%;padding:9px 8px 8px;border-radius:9px 9px 0 0}.usp-scoring-rules h2{font-size:.86rem;margin-bottom:5px}.usp-rule-groups{gap:5px}.usp-rule-group{padding:6px 3px}.usp-rule-group h3{font-size:.76rem}.usp-rule-points{gap:3px}.usp-rule-points span{font-size:.69rem}.usp-rule-points strong{font-size:.72rem}.usp-scoring-rules p{font-size:.65rem;margin-top:4px}}


/* University comparison */
.usp-compare-search{margin-top:28px;padding-top:20px;border-top:2px solid #e4e4e4}
.usp-compare-search h3{font-size:1.2rem;margin:0 0 14px}
.usp-compare-universities{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.usp-compare-selects{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:12px;flex:1 1 420px}
.usp-compare-field{min-width:0}
.usp-add-university{appearance:none;border:1px solid #145da0;border-radius:7px;padding:11px 16px;background:#fff;color:#145da0;cursor:pointer;font:inherit;min-height:46px;font-weight:700}
.usp-add-university[hidden]{display:none}
.usp-compare-period{margin-top:18px}
.usp-compare-table{min-width:760px}
.usp-compare-chart-section{margin:28px 0 24px;padding-top:18px;border-top:1px solid #ddd}
.usp-compare-chart-section h4{font-size:1.1rem;margin:0 0 12px}
.usp-compare-chart{width:100%;overflow-x:auto}
.usp-compare-chart svg{display:block;width:100%;min-width:700px;height:auto}
.usp-compare-legend{display:flex;flex-wrap:wrap;gap:9px 16px;margin-top:12px}
@media(max-width:600px){.usp-compare-selects{grid-template-columns:1fr}.usp-compare-universities{align-items:stretch}.usp-add-university{width:100%}}

.usp-year-results{margin:18px 0 24px}
.usp-year-results h3{font-size:1.15rem;margin:0 0 12px}
.usp-year-results-table{min-width:480px}
.usp-year-results-table th,.usp-year-results-table td{text-align:left}

.usp-year-results{margin:22px 0 24px}
.usp-year-results>h3{font-size:1.2rem;margin:0 0 14px}
.usp-event-result{border:1px solid #d8e1ea;border-radius:9px;padding:14px 16px;margin:0 0 12px;background:#fff}
.usp-event-result h4{font-size:1.05rem;font-weight:800;margin:0 0 12px;color:#123f68}
.usp-event-line{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;padding:8px 0;border-top:1px solid #edf0f3}
.usp-event-kind{color:#145da0}
.usp-event-placements{display:flex;flex-wrap:wrap;gap:8px 18px}
.usp-event-entry{display:inline-flex;gap:5px;align-items:baseline}
.usp-event-entry b{white-space:nowrap}
@media(max-width:600px){.usp-event-result{padding:11px}.usp-event-line{grid-template-columns:1fr;gap:5px}.usp-event-placements{gap:8px 12px}}

/* Keep all four main tabs in one equal-width row. */
.usp-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.usp-tab{width:100%;min-width:0;flex:initial}
.usp-compare-selects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;flex:1 1 100%;width:100%}
.usp-compare-field{min-width:0}
.usp-compare-field select{width:100%;min-width:0}
.usp-compare-universities{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.usp-add-university{align-self:flex-start}
@media(max-width:600px){
  .usp-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  .usp-tab{padding:9px 4px;font-size:.82rem}
  .usp-compare-selects{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .usp-compare-field select{min-width:0;padding-left:7px;padding-right:20px;font-size:14px}
}

/* Hide the unused annual ranking table in annual results. */
.usp-year-mode .usp-table-scroll{display:none!important}

.usp-usage-notice{max-width:900px;margin:10px auto 0;padding:0;text-align:center;border:0;border-radius:0;background:transparent}
.usp-usage-notice p{margin:3px 0;font-size:1rem;line-height:1.5;font-weight:400;color:inherit}
@media(max-width:600px){.usp-usage-notice{margin-top:9px}.usp-usage-notice p{font-size:.95rem;line-height:1.45}}

.usp-university-insights{margin:18px 0 8px;padding:16px 18px;border:1px solid #d8e1ea;border-radius:10px;background:#f8fafc;color:#243447}
.usp-university-insights h4{margin:0 0 10px;font-size:1.12rem;font-weight:800;color:#123f68}
.usp-university-insights-list{margin:0;padding-left:1.35em}
.usp-university-insights-list li{margin:7px 0;line-height:1.55}
.usp-insights-note{margin:10px 0 0;font-size:.82rem;color:#64748b;line-height:1.45}
@media(max-width:600px){.usp-university-insights{padding:12px}.usp-university-insights-list li{font-size:.9rem}.usp-insights-note{font-size:.76rem}}

.usp-university-insights-list li{margin:8px 0;line-height:1.6}

.usp-university-insights-list li strong{color:#123f68}


/* Selected-period university feature summary */
.usp-period-feature{margin:22px 0 14px;padding:17px 19px;border-left:5px solid #1769aa;background:#f1f7fc;border-radius:7px;color:#17324d}
.usp-period-feature h4{margin:0 0 9px;font-size:1.12rem;font-weight:800;color:#145da0}
.usp-period-feature-text{margin:0;font-size:1.17rem;font-weight:600;line-height:1.9;letter-spacing:.01em;white-space:pre-line}
@media(max-width:600px){.usp-period-feature{margin:17px 0 12px;padding:13px 14px}.usp-period-feature h4{font-size:1.05rem}.usp-period-feature-text{font-size:1.05rem;line-height:1.8}}

/* Interactive university chart point inspection */
.usp-university-chart svg { touch-action: pan-y; overflow: visible; }
.usp-university-chart .usp-chart-hit { cursor: crosshair; }
.usp-university-chart .usp-chart-focus-bg { filter: drop-shadow(0 3px 5px rgba(0,0,0,.22)); }

/* Prominent university catchphrase in both feature and analysis sections */
.usp-period-feature-headline{margin:0 0 10px;font-size:1.48rem;font-weight:850;line-height:1.45;color:#123f68;letter-spacing:.01em}
.usp-university-insights-title{font-size:1.12rem!important;font-weight:800!important;line-height:1.4;color:#123f68!important;margin-bottom:10px!important}
@media(max-width:600px){.usp-period-feature-headline{font-size:1.2rem!important;line-height:1.45}}

/* Larger, readable chart inspection labels */
.usp-university-chart .usp-chart-focus-bg{filter:drop-shadow(0 3px 6px rgba(0,0,0,.25))}
.usp-chart,.usp-compare-chart{touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch}

.usp-compare-insights{margin:22px 0 14px;padding:17px 19px;border-left:5px solid #1769aa;background:#f1f7fc;border-radius:7px;color:#17324d}
.usp-compare-insights h4{margin:0 0 9px;font-size:1.12rem;font-weight:800;color:#145da0}
.usp-compare-insights-headline{margin:0 0 10px;font-size:1.48rem;font-weight:850;line-height:1.45;color:#123f68;letter-spacing:.01em}
.usp-compare-insights-text{margin:0;font-size:1.05rem;font-weight:600;line-height:1.85;white-space:pre-line}
@media(max-width:600px){.usp-compare-insights{padding:13px 14px}.usp-compare-insights-headline{font-size:1.2rem}.usp-compare-insights-text{font-size:.96rem;line-height:1.75}}




/* Compact square SNS icon row */
.usp-share{margin:28px auto 8px;padding:20px 16px 18px;max-width:900px;text-align:center;border-top:1px solid #dbe2ea}
.usp-share h3{margin:0 0 7px;font-size:1.12rem;font-weight:800;color:#17324d}
.usp-share-caption{margin:0 0 13px;font-size:.92rem;font-weight:700;color:#475569}
.usp-share-buttons{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}
.usp-share-icon{box-sizing:border-box;width:54px;height:54px;min-width:54px;padding:0;border:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;font-family:Arial,sans-serif;font-size:27px;font-weight:800;line-height:1;cursor:pointer;box-shadow:0 2px 5px rgba(15,23,42,.15);transition:filter .15s ease,transform .15s ease}
.usp-share-icon:hover{filter:brightness(1.08);transform:translateY(-2px);color:#fff}
.usp-share-icon:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
.usp-share-x{background:#111}
.usp-share-facebook{background:#1877f2;font-size:34px;align-items:flex-end}
.usp-share-instagram{background:linear-gradient(135deg,#833ab4 0%,#c13584 48%,#f77737 100%);font-size:35px}
.usp-share-line{background:#06c755;font-family:Arial,sans-serif;font-size:15px;letter-spacing:-.5px}
.usp-share-note{min-height:1.4em;margin:9px 0 0;font-size:.82rem;line-height:1.4;color:#475569}
@media(max-width:600px){.usp-share{margin-top:21px;padding:16px 8px 12px}.usp-share-buttons{gap:9px}.usp-share-icon{width:50px;height:50px;min-width:50px;border-radius:9px}}

/* Plugin version below SNS share buttons */
.usp-version{margin:8px 0 0;font-size:.76rem;line-height:1.4;color:#94a3b8;text-align:center}

/* Creator and administrator credits below plugin version */
.usp-credit{margin:5px 0 0;font-size:.78rem;line-height:1.7;color:#64748b;text-align:center}

/* Official-style brand marks in SNS buttons */
.usp-share-icon svg{display:block;width:62%;height:62%;fill:currentColor}
.usp-share-line svg{width:78%;height:78%}

/* Explicit white brand marks: prevent theme SVG rules from recoloring logos */
.usp-share-icon svg{display:block;width:62%;height:62%;fill:#fff!important;color:#fff!important}
.usp-share-icon svg path{fill:#fff!important}
.usp-share-line svg{width:76%;height:76%}
.usp-share-line svg g{fill:#06c755!important}


/* TSU supporter recruitment banner at the top of the plugin */
.usp-supporter-banner{box-sizing:border-box;display:block;width:100%;max-width:1100px;margin:0 auto 18px;line-height:0;text-decoration:none!important;border-radius:10px;overflow:hidden;box-shadow:0 3px 12px rgba(15,39,64,.14);transition:filter .15s ease,transform .15s ease}
.usp-supporter-banner:hover{filter:brightness(1.04);transform:translateY(-1px)}
.usp-supporter-banner:focus-visible{outline:3px solid #1b6ecb;outline-offset:3px}
.usp-supporter-banner img{display:block;width:100%;height:auto;border:0}
@media(max-width:600px){.usp-supporter-banner{margin-bottom:14px;border-radius:7px}}

.usp-metric-clickable{cursor:pointer;transition:border-color .15s,box-shadow .15s}.usp-metric-clickable:hover,.usp-metric-clickable:focus{border-color:#145da0;box-shadow:0 0 0 2px rgba(20,93,160,.14);outline:none}.usp-metric-clickable .usp-metric-label:after{content:'  ›';color:#145da0;font-weight:700}.usp-placement-detail{position:fixed;z-index:999999;max-height:min(55vh,420px);overflow:auto;box-sizing:border-box;padding:14px 16px;border:1px solid rgba(255,255,255,.16);border-radius:10px;background:#17243d;color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.28);font-size:14px}.usp-placement-detail[hidden]{display:none}.usp-placement-detail h4{margin:0 28px 9px 0;font-size:15px;color:#fff}.usp-placement-detail ul{margin:0;padding-left:19px}.usp-placement-detail li{margin:6px 0;line-height:1.45;color:#f3f6fb}.usp-placement-detail-total{margin:10px 0 0;padding-top:9px;border-top:1px solid rgba(255,255,255,.22);font-weight:700;color:#fff}.usp-placement-detail-close{position:absolute;top:7px;right:9px;border:0;background:transparent;color:#fff;font-size:23px;line-height:1;cursor:pointer;padding:2px 6px}

.usp-placement-detail-total{margin:10px 0 0;font-weight:700;color:#145da0}
