<?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_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-06</startDate>
            <endDate>2026-01-06</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_da295965-8962-4cfc-b7b1-bbef3c2475f3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_ec098690-9198-4543-b0c7-912585a7cbc2">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_0db34ae1-3570-4241-bd68-f8cf7f05085b">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_b6b66b48-0202-4fc5-bcd1-5424da4d8bcd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_1265b132-bb46-48d0-a190-81f9847ab3a4">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_48d48b72-a7ac-40d0-8cd1-aa208ffa69a8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_6c565401-9a49-4fc5-a1e0-f787118033d8">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_4656a808-258b-4e99-92a6-80977f9af552">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_f2e0e913-7936-4ef2-95ad-9d9d77b89ae1">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      id="F_7f644faa-c485-4617-8233-25b38e6d6cb9">&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;515,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_d1ed6bcb-d46a-4beb-9a3f-290cf89bc9f5"
      decimals="0"
      id="F_d733664b-5989-4e07-ab39-ad7ea4db1f2c"
      unitRef="U_USD">515000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
