<?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_50deb38d-3a4f-4f83-a095-ab54ddcff8e6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-25</startDate>
            <endDate>2026-08-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_be3edd8d-d4e7-493b-8a68-246ffbb76556">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_27540018-e8f8-479a-a435-b178eea13355">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_161dac96-7dd9-4ddb-9be1-8ac964ea3df6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_d81f9d0b-3a6b-4858-9b7e-635a95f48181">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_ceffd8aa-d233-4aac-a415-bb8bfb1bc57b">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_cacb5e78-22bc-40fe-a479-8666bf29cea5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_e7fbe011-bc55-4459-92f6-b002142f835f">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_08c2fa63-8b00-403c-9543-aecedfb7d6e2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_ddd6828c-1c9b-4e13-a645-3bf82b532799">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      id="F_794a6027-4c32-401c-8149-e4bf4466d6d1">&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;250,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_50deb38d-3a4f-4f83-a095-ab54ddcff8e6"
      decimals="-3"
      id="F_fc5eaece-3369-48f6-b465-57d03fbdd837"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
