<?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_d2cc9e83-dcfa-44ff-9162-06a546990fc6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_a91440f2-6d7a-49ff-8565-f6adb7b048d4">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_68e1837a-74c2-4232-bd4f-2dec610e3400">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_897b6c94-e05b-4c3d-9691-2a2d935e91ea">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_9efe0d41-d4e5-4c98-be22-046230f8c11d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_111b893d-7585-418e-a45d-b83d2495ef6e">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_754816f7-78d2-4fb4-8e49-016ff3638201">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_e40b1cff-1174-492d-bcf0-3911487255c5">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_ec765ec0-9d8a-4cd2-b2a7-454859ba36ac">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_c37068bc-dda1-470a-b0d0-1ba8cdbe7472">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      id="F_3130d084-c112-4f01-a001-f80816ebb10e">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,150,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_d2cc9e83-dcfa-44ff-9162-06a546990fc6"
      decimals="-3"
      id="F_3633dcfc-23d7-40ea-9781-ff48d2807c73"
      unitRef="U_USD">3150000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
