<?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_89b27642-c504-4132-a72f-938b5b994c39">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-30</startDate>
            <endDate>2026-09-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_6aac43ec-648a-423d-aca2-638e75555b42">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_60c7bfa6-df1a-4f81-a259-4560fa363927">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_f7684cd4-7042-4240-b5b0-3632351b3ff3">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_2f81bfba-852f-4d97-bafe-ac3cc4c0611d">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_b8485a8c-5108-4979-b92b-7b26fb0cca01">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_b4e5dfe5-b7a5-4fca-b7f8-d5fdd1366c1a">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_1fbcd439-3b03-4329-b663-dc8b7cc0b6bc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_9be537d2-b58d-4981-8579-ded0345bd884">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_e6154a18-82bc-42d7-b0ec-9e71d3c9642a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_89b27642-c504-4132-a72f-938b5b994c39"
      id="F_905c617b-b695-4fc8-b076-32046a4ec931">&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;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_89b27642-c504-4132-a72f-938b5b994c39"
      decimals="-6"
      id="F_16588dc7-db81-44b3-9ccb-56a3d8d6ade1"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
