<?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_828aec84-ff20-4517-ab52-0333b409bff6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-20</startDate>
            <endDate>2026-07-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_d9974eaf-af3c-46f8-8aa9-29a0d036cb7d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_9de2ffb6-2c3c-4c1e-bdf7-dde3bbf6a20e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_0c512f65-f79e-49ed-bb1b-2039459ecf73">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_754b6e1b-1e26-4138-85f1-1fe5ec76e1e4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_758bebb4-501b-475e-8107-919ac326be37">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_88fe4bee-1eb5-4f11-8b57-b3e49a10a0a6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_f7732a34-57c5-4986-98aa-1a54d43e1544">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_377eefa6-2287-42b2-9b2d-300949f1feb2">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_d286ecfd-f532-4685-91f6-7d02f7552797">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_828aec84-ff20-4517-ab52-0333b409bff6"
      id="F_b9dc659b-ce1f-4224-811b-28daa9328d04">&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,532,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_828aec84-ff20-4517-ab52-0333b409bff6"
      decimals="-3"
      id="F_e84ccd93-1a09-4bd5-8f13-e1542bec9764"
      unitRef="U_USD">6532000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
