/* The supplier directory: a small internal tool whose every extra fact comes from the country's record. */
.pg-developers-guide { --s-ink: #1c3145; --s-soft: #51677a; --s-line: #dbe5ee; --s-accent: #2454eb; --s-good: #17714a; --s-bad: #a5391a; }
.pg-supplier-app { position: relative; background: #fff; border: 1px solid #cbd9e5; border-radius: 12px; }
.pg-supplier-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 24px; padding: 20px 26px; background: #edf3f8; border-radius: 12px 12px 0 0; }
.pg-supplier-title h2 { margin: 4px 0 0; font-size: 1.6rem; letter-spacing: 0; }
.pg-supplier-title p { margin: 0; font-size: .85rem; color: #546e83; }

/* Add a supplier: the four things a person types, and what the country fills in. */
.pg-supplier-add { padding: 22px 26px 20px; background: #f7fafc; border-bottom: 1px solid #d4e1eb; }
.pg-supplier-add h3 { margin: 0 0 14px; font-size: 1.05rem; color: var(--s-ink); }
.pg-supplier-fields { display: grid; grid-template-columns: 1.2fr 1.2fr .9fr 1.1fr; gap: 14px; align-items: start; }
.pg-supplier-add label { display: flex; flex-wrap: wrap; gap: 6px; font-size: .74rem; color: #49647a; }
.pg-supplier-add label small { flex-basis: 100%; font-size: .7rem; line-height: 1.45; color: #587084; min-height: 2.9em; }
.pg-supplier-add label small.pg-good { color: var(--s-good); }
.pg-supplier-add label small.pg-bad { color: var(--s-bad); }
.pg-supplier-add input, .pg-supplier-add select { width: 100%; min-width: 0; height: 46px; font: inherit; font-size: 1rem; padding: 8px 10px; border: 1px solid #a8bbcb; border-radius: var(--radius); background: #fff; color: #243e54; }
.pg-supplier-add input[aria-invalid="true"] { border-color: var(--s-bad); }
.pg-supplier-derived { margin-top: 4px; padding: 14px 16px; border: 1px solid #cfe0d6; border-left: 4px solid #2f9467; border-radius: 8px; background: #f3faf6; }
.pg-supplier-derived.pg-empty { border-color: #d5dee6; border-left-color: #a8b6c3; background: #f4f6f8; }
.pg-supplier-derived-title { display: block; margin-bottom: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--s-good); }
.pg-supplier-derived.pg-empty .pg-supplier-derived-title { color: var(--s-soft); }
.pg-supplier-derived dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.pg-supplier-derived dt { font-size: .68rem; color: var(--s-soft); }
.pg-supplier-derived dd { margin: 2px 0 0; min-height: 1.4em; font-size: .9rem; font-weight: 600; color: var(--s-ink); overflow-wrap: anywhere; }
.pg-supplier-derived dd #supplier-currency-name { font-weight: 400; }
.pg-supplier-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; min-height: 30px; font-size: .76rem; color: var(--s-soft); }
.pg-supplier-hints:empty { display: none; }
.pg-supplier-hints button { min-height: 30px; padding: 3px 11px; border: 1px solid #b9c8d6; border-radius: 15px; background: #fff; color: var(--s-ink); font: inherit; cursor: pointer; }
.pg-supplier-hints button:hover { background: #edf3f8; }
@media (prefers-reduced-motion: no-preference) {
    .pg-supplier-derived.pg-filled { animation: pg-fill 1.2s ease-out; }
}
@keyframes pg-fill { from { background: #c4e8d5; } to { background: #f3faf6; } }
.pg-supplier-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.pg-supplier-submit p { margin: 0; font-size: .8rem; color: var(--s-ink); }
.pg-add-button { min-height: 44px; border: 1px solid #1d3f5a; border-radius: 6px; color: #fff; background: #1d3f5a; padding: 10px 18px; cursor: pointer; font: inherit; font-size: .88rem; font-weight: 600; }
.pg-add-button:hover { background: #16314a; }
.pg-add-button:disabled { background: #7c8e9c; border-color: #7c8e9c; cursor: default; }

/* The directory. */
.pg-supplier-columns, .pg-supplier-row { display: grid; grid-template-columns: 1.5fr 1.1fr 1.1fr 1.3fr .6fr .8fr; gap: 12px; padding: 14px 26px; align-items: center; }
.pg-supplier-columns { padding-top: 16px; padding-bottom: 10px; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: #516c80; }
.pg-supplier-row { border-top: 1px solid #e0e7ed; cursor: pointer; }
.pg-supplier-row:hover { background: #f0f5fa; }
.pg-supplier-row > button { text-align: left; border: 0; background: transparent; color: var(--s-accent); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; padding: 4px 0; min-height: 44px; }
.pg-supplier-row > span { font-size: .82rem; color: var(--s-ink); overflow-wrap: anywhere; }
/* A local time carries a dot: filled green inside office hours, hollow outside. */
.pg-dot { display: inline-block; flex: none; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; border: 1.5px solid #8b9baa; background: transparent; }
.pg-dot.pg-open { border-color: #1f8a5b; background: #1f8a5b; }
.pg-supplier-key { margin: 0; padding: 12px 26px 16px; border-top: 1px solid #e0e7ed; font-size: .74rem; color: var(--s-soft); }
.pg-supplier-key .pg-dot:not(:first-child) { margin-left: 18px; }

/* A supplier's card. */
.pg-supplier-card { width: 560px; }
.pg-supplier-card .pg-supplier-where { margin: 0 0 14px; font-size: .92rem; line-height: 1.55; color: var(--s-ink); }
.pg-supplier-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; }
.pg-supplier-split h4 { margin: 0 0 8px; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--s-soft); }
.pg-supplier-split pre { margin: 0; padding: 10px 12px; font-size: .74rem; line-height: 1.5; }
.pg-supplier-split dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; margin: 0; font-size: .8rem; line-height: 1.45; }
.pg-supplier-split dt { color: var(--s-soft); }
.pg-supplier-split dd { margin: 0; color: var(--s-ink); }

/* Below the example. */
.pg-supplier-idea { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0 48px; }
.pg-supplier-idea h3 { margin: 0 0 8px; font-size: .95rem; }
/* Each column is its heading and its code box, and the box takes what height is left, so the two boxes end level
   without a guessed height that the code could be a few pixels taller than. */
.pg-supplier-idea > div { display: flex; flex-direction: column; min-width: 0; }
.pg-supplier-idea pre { flex: 1 1 auto; margin: 0; font-size: .8rem; }
.pg-developers-guide .project-steps { margin-bottom: 48px; }
.pg-supplier-fetch { display: grid; gap: 8px; margin-top: 14px; }
.pg-supplier-fetch details { border: 1px solid var(--s-line); border-radius: 8px; padding: 10px 14px; background: #fff; }
.pg-supplier-fetch summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--s-ink); }
.pg-supplier-fetch pre { margin-top: 8px; }
.pg-supplier-fetch .text-button { margin-top: 10px; }
.pg-developers-guide .project-detail { margin-bottom: 40px; }
.pg-developers-guide .project-detail p { max-width: 860px; }

@media (max-width: 1000px) {
    .pg-supplier-fields { grid-template-columns: 1fr 1fr; }
    .pg-supplier-derived dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .pg-supplier-title { padding: 16px; }
    .pg-supplier-add { padding: 18px 14px; }
    .pg-supplier-fields { grid-template-columns: 1fr; gap: 12px; }
    .pg-supplier-add label small { min-height: 0; }
    .pg-supplier-derived dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-supplier-hints button { min-height: 40px; }
    .pg-supplier-columns { display: none; }
    .pg-supplier-row { padding: 14px 16px; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
    .pg-supplier-row > button { grid-column: 1 / -1; }
    .pg-supplier-row > span[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #637c8d; font-size: .65rem; }
    .pg-supplier-key { padding: 12px 16px 14px; line-height: 1.9; }
    .pg-supplier-key .pg-dot:not(:first-child) { margin-left: 0; }
    .pg-supplier-key br { display: block; }
    .pg-supplier-card { width: 100%; }
    .pg-supplier-split { grid-template-columns: 1fr; }
    .pg-supplier-idea { grid-template-columns: 1fr; margin-bottom: 36px; }
    .pg-supplier-idea pre { height: auto; }
}
@media (min-width: 1024px) {
    /* The form and the top of the directory stay on the first screen. */
    .pg-developers-guide .pg-header { grid-template-columns: minmax(0, 1fr) 190px; gap: 32px; padding: 14px 0 8px; }
    .pg-developers-guide .pg-header-art { padding: 10px 6px; }
    .pg-developers-guide .pg-header .eyebrow { margin-bottom: 7px; }
    .pg-developers-guide .pg-header h1 { margin-bottom: 8px; }
    .pg-developers-guide .site-breadcrumb { margin-bottom: 14px; }
    .pg-developers-guide .pg-header .lead { font-size: .95rem; max-width: none; }
    .pg-developers-guide .pg-header .project-actions { margin-top: 12px; }
    .pg-developers-guide .pg-header .project-actions .btn { min-height: 40px; padding: 8px 16px; }
    .pg-developers-guide .pg-guide-hint { margin: 6px 0 10px; }
    .pg-supplier-title { padding: 12px 26px; }
    .pg-supplier-title h2 { font-size: 1.35rem; }
    .pg-supplier-add { padding: 16px 26px 16px; }
    .pg-supplier-add h3 { margin-bottom: 10px; }
    .pg-supplier-add label small { min-height: 1.5em; }
}
