<?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_50b5d44f-00bc-46f0-864e-b739b7945523">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-29</startDate>
            <endDate>2026-09-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_eed280de-8723-46d2-9eb8-185bc5398fd0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_e3176503-16f1-49c9-b8e5-6ef78365d16f">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_493c306a-85a3-4df6-8630-6f32698e4c30">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_45051684-0021-4a0d-8597-2e0fdf972854">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_743d4a8a-a41b-4a97-8f29-42563aa9399a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_ad20c2ed-a29e-4e89-9920-e49179a382d2">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_d019c5ef-2340-4791-93fe-d6c276060892">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_24d2b703-b222-4437-927b-3bf7bd9ef9a6">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_27530c8c-226f-41e0-9a03-49716ad67b65">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_50b5d44f-00bc-46f0-864e-b739b7945523"
      id="F_352608d6-1297-4b45-b349-5d55560e1cf2">&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;51,580,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_50b5d44f-00bc-46f0-864e-b739b7945523"
      decimals="-3"
      id="F_398de64e-4879-4e3e-b68b-ea7c5ecbe33d"
      unitRef="U_USD">51580000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
