<?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_a378cfc1-8853-4751-a1af-0013c8c46bf5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-28</startDate>
            <endDate>2026-07-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_ae3ca12b-5c12-447b-97b7-2cd615dc2a4c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_342c346d-ba26-4550-9c72-030df101c850">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_4a56f334-6dff-43b0-bc7d-3e12f7bc5f5f">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_47b0ccef-b19d-45ac-bc9b-da5d37bf32c5">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_103bc621-3cf2-4597-afbf-167d7fcdfa2e">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_690cd5db-789c-46b9-8f5e-f4e87483a930">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_9bcba354-d7b5-4994-9e74-e447f4768ddd">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_1b5517d5-56d6-4fa2-8bd2-ac4399090ce4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_9556eef2-38e1-4765-af30-fe531e246090">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      id="F_91213368-e714-40a1-b078-64532767d9dd">&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_a378cfc1-8853-4751-a1af-0013c8c46bf5"
      decimals="-3"
      id="F_8b83ed2b-2e5c-4489-8ac7-612f38554a02"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
