<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_8e2202b0-a068-4381-a2c7-f1a43232be66">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_7a9131a8-496d-40ce-9814-189d678ff22b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_a25a31a7-443c-47c3-8f06-eb8f147106b7">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_658eeade-8268-4685-b7c7-88773a89a8da">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_257bc82b-4031-46c9-96e5-8e88f252fba1">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_67f67fa2-5d3b-4f9d-84f1-d53d42116df8">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_9d0184b9-123f-4833-a876-b61b2ac628fc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_f57db6cc-3aac-43a3-afaa-d26bef2e1d0d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_229f8bc8-65a1-4158-a6ff-b79603841e4a">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_6f109a9f-422f-474e-9495-a300bb439a5b">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_8e2202b0-a068-4381-a2c7-f1a43232be66"
      id="F_559d4d86-089a-457c-b960-7c88e55a835c">&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;1,431,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_8e2202b0-a068-4381-a2c7-f1a43232be66"
      decimals="0"
      id="F_6ad380e2-d954-4d19-9738-a1c04302dc1a"
      unitRef="U_USD">1431000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
