<?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_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f">
        <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_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_d1b4da47-9615-4647-9219-23dd80108219">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_e0c85550-1076-48f3-9ef4-18de5f133ccb">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_2b907ae5-26e6-41de-86e1-f10b453357c4">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_b88db432-d22a-4bba-9aeb-74e270a82ced">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_d557ab9f-9868-4ac7-bd41-0ef245f4a5d2">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_c32de473-40df-48da-a4a5-ac8acd887645">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_659aa3ca-08a5-475f-be1a-bbf60d1d31d1">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_8494dd5f-ad1e-48bd-84dd-9acb0816e34d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_0cd533c9-dcb8-4475-8e44-555b341af4b0">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      id="F_b4fcfcbd-d3a9-4367-9cb6-7582e48fcedc">&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;699,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_7b69c4b3-9e6a-4a58-9ee6-069bdf947a9f"
      decimals="-3"
      id="F_c3b509eb-c566-426b-b62f-b2c286a7f8ef"
      unitRef="U_USD">699000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
