<?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_1dec233d-8717-461f-a90a-19dd99e64bec">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_032985fc-e02c-43da-9e8f-88cd6a01fad3">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_5ac13e18-6e2c-44f8-b946-0c6ff84a67b7">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_b4403ed8-40d1-4659-ab03-dc2b36a7fb36">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_953d0030-a78d-4e23-ba40-88524da0ba6c">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_2ee69128-1ad0-4a1f-a574-ac8df18b4d74">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_47ba3fb4-d1de-4b22-8dc6-bb0055c74992">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_975fda0c-4815-4272-b3e6-30ec548ab880">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_521cd7fa-d44a-406e-b7d1-4f5fedcc4cd1">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_efa62d6b-d406-4abf-9f63-d67bca7a3b9a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1dec233d-8717-461f-a90a-19dd99e64bec"
      id="F_8cd41d33-4713-477a-9185-61d82881147b">&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;500,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_1dec233d-8717-461f-a90a-19dd99e64bec"
      decimals="-3"
      id="F_6ab4651c-5b03-49d7-898a-1608e7451cf2"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
