<?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_43fa927a-2369-4e13-8be4-b697d48c5a82">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_233bbbd6-f66c-499a-9a52-62e9acf0e0cf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_4a878d0f-4f94-4d12-8214-ed4a013776be">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_9518937b-6984-4cb3-8714-bf30ce306d2d">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_fb6d3064-29b9-403d-9d23-46c1eeabc44b">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_156e02f4-1d6d-4a85-80a5-53796deb708f">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_0bc37a00-33d3-42fc-8bee-ad476bce4be8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_a9181fff-8e1b-42c3-ae7c-0e5e03c7ffbc">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_a9a3c8f5-b285-4307-b474-619143821e96">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_9448ddaa-5200-460e-9fd9-3291e8c83a22">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_43fa927a-2369-4e13-8be4-b697d48c5a82"
      id="F_e75932cd-872c-48b6-a3c1-836b44009398">&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,123,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_43fa927a-2369-4e13-8be4-b697d48c5a82"
      decimals="-3"
      id="F_c68cdfe7-d671-47fc-b11c-60dcb8387c26"
      unitRef="U_USD">2123000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
