<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_2be308a7-d6a7-40ae-a926-02567119fdd3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-08</startDate>
            <endDate>2026-07-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_b487774d-2c17-4250-b0f3-4f8512963812">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_bad3f60e-efc9-4b4a-8d0d-fd2d4934ba80">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_e101ff0f-08a6-4723-b9f5-1d7bcc630fe6">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_080d147c-f723-4f97-b1e9-cb4d6326a2cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_95a2f4fd-ee87-4cf3-90f7-cb0cfb5281ab">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_7a97b3f8-83ce-4713-b008-8c83cbb4aa23">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_a83ae0a7-0a5a-49e6-993c-0f2af6e5c8b7">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_7f07b66c-1b7d-4a96-b90d-cca5b9c9cf62">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_9b769541-939e-45f1-9bb3-39578936e2bc">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      id="F_936b743c-2be9-4434-b5ed-8b20cf3df419">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The amended prospectus to which this Exhibit is attached is the final prospectus for the offering of the reopened notes described therein. The maximum aggregate offering price for the offering of the reopened notes is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;135,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_2be308a7-d6a7-40ae-a926-02567119fdd3"
      decimals="-3"
      id="F_35556696-2998-4dc9-81bb-1efb79cac065"
      unitRef="U_USD">135000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
