<?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_0e3c65da-1b62-4c20-abe0-8e0610586241">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-04</startDate>
            <endDate>2026-08-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_cc4f47f1-e729-4f41-9b3c-a4a2e724e95d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_d0c577a9-9c7f-45b7-a763-361adc139b4d">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_4e44b4c0-9e2e-411c-961c-bedf529ff386">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_e23eeecb-e74e-47d4-9e58-f61855ebc3b5">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_952e792b-54cf-4eed-8e34-e22f42d321e0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_34602981-69ae-4c3b-baca-be19b2a03cb8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_f0bfe551-32a1-435a-aee5-99f6f30ad762">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_05f9a51e-5136-4189-8436-df1316075351">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_e38e6b46-48e7-42fb-8178-d67503951e5d">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_0e3c65da-1b62-4c20-abe0-8e0610586241"
      id="F_e35e0c58-6a94-4556-8aec-7a3e8dd896dd">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;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 prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering 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;2,332,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_0e3c65da-1b62-4c20-abe0-8e0610586241"
      decimals="-3"
      id="F_a8bba306-fd19-4ebb-bfd2-57e8ba2f798f"
      unitRef="U_USD">2332000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
