<?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_7ef4322f-f35f-42dd-a975-353cd5e9975d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_529d45ff-2ec4-46c7-93a9-019dc7c1b848">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_01c77952-536d-4812-8bbb-37294a9771a9">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_d16ca06b-8ffa-43e2-ae0b-b5b831aa39bd">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_7b53882c-2443-48df-99db-e1ca6a6a7baa">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_068372a1-d30e-4fb1-bb2b-fe0a92b28e1e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_7e15eab6-74e7-40d5-8ab5-8b94c2c2777c">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_d5b421d2-5dc6-4de7-b9dd-3e693e47cf93">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_206da561-1ce1-43bc-948d-a9b7440f7f01">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_e8e9e1a0-954c-4e32-aeed-d60ff801ab8e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      id="F_7d49a040-97c8-49ad-a02a-859b21d4f1de">&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,000,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_7ef4322f-f35f-42dd-a975-353cd5e9975d"
      decimals="0"
      id="F_5c828570-7953-4490-b5e4-080f5d47d754"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
