<?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_01934a23-b86a-49ad-b489-2bbde96d24f1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-02</startDate>
            <endDate>2026-10-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_91a8d3cd-50c8-4206-bb5a-604d9b8dd42d">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_36d4d843-5f07-4723-b01e-9f69cb43a69a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_d553cda0-8b33-4ed9-b2d2-28eb90e34a50">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_ae10970e-6242-4861-92aa-601290310a87">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_48fd1217-fd87-458a-a6ba-4315259a69a7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_d82ebfc1-1c94-474d-99df-8030089184a4">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_2d0c1f5c-3a01-4575-b2e5-5462bfb712bc">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_80d12db9-f516-4cbd-88a6-8ca1a1be4c76">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_763861cc-df9b-4772-a813-a0d456e6cc53">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_01934a23-b86a-49ad-b489-2bbde96d24f1"
      id="F_58382f1c-db84-45f8-8278-2b4931187218">&lt;p style="tab-size:26.66px;font-size:12pt;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;2,585,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_01934a23-b86a-49ad-b489-2bbde96d24f1"
      decimals="-3"
      id="F_0dffe766-11ba-4e00-8332-881b8523a753"
      unitRef="U_USD">2585000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
