<?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_8ceb83eb-4ccf-4e34-99c5-878ba8464993">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-22</startDate>
            <endDate>2026-01-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_78ea33a3-5c32-4eed-871a-6dbe8851dbe4">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_4a397fa3-ab88-4c3b-88bb-043dcdcb92df">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_cee041fd-04c1-4fa1-a466-c6f97707d63a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_fe924b0c-8e6f-4ee4-96e4-d0e2cec26419">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_5911d597-ce22-4c48-9757-d48096e26ec9">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_7457c86e-64b8-4c63-b523-65de91dae15c">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_1f480737-99e0-482c-ba9b-9202dfabe554">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_3de24d53-e11c-4b45-9dad-c66d1b465fea">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_0a9ec9f3-b545-4e7b-880d-6ffe3ebc5c66">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      id="F_92cc6c67-7c93-4af2-84e5-fda876c7bfc7">&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;500,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_8ceb83eb-4ccf-4e34-99c5-878ba8464993"
      decimals="0"
      id="F_7f2b10f7-0378-4533-9139-e1833f615543"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
