<?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_3057970a-c132-41a2-9dc8-d683fcae3255">
        <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>
    <ffd:FormTp
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_313e91af-13f4-4388-9f9a-286d53f299d2">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_92e032e1-ae2e-49ff-ac0b-09d3073e981f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_c1a39e5b-525c-402b-b0cb-31d1ad53c26b">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_581bafdc-301f-42dd-8019-e7c503ddbd7d">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_2130fef1-550d-410a-9c01-bbad6c645454">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_e636aedd-ab3f-44db-ab5e-20a6e5a9f662">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_4a46fedc-004c-422c-883a-f42adbe2345c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_4b59816e-8966-4b40-b8ed-d7263f87b67a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_09ec4882-9eef-46cd-91b8-b2323bed3387">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3057970a-c132-41a2-9dc8-d683fcae3255"
      id="F_19a2cb27-f02f-40a0-a509-977100de016a">&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;6,129,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_3057970a-c132-41a2-9dc8-d683fcae3255"
      decimals="-3"
      id="F_02474495-2754-4b58-825b-ac771e8af500"
      unitRef="U_USD">6129000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
