<?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_b473da39-85f1-4e78-aa38-3b4bbf29d352">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-01-13</startDate>
            <endDate>2026-01-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_9c6ec360-28bc-418b-9c98-f29d2b3192c0">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_6f428e0f-10ff-43e0-b660-97965cb13f8b">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_e6306de1-4a7a-4222-a232-b4b5f839b092">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_e0daf3e3-a374-4264-a213-8be397bca9d3">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_51844d3b-e2bc-4c00-b62c-a6b983f6d516">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_97af2480-f6e3-414c-95c2-3b3ba45c2f32">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_4ac7a1e2-6e90-411a-9a7e-d5d8afe73f78">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_eb1d9613-fd19-441e-92e1-e8188aab833b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_97a9fab1-e88d-4a3a-9924-1fe42354c6f1">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      id="F_aab6010a-bec9-4066-899d-9270d79248cb">&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;8,028,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_b473da39-85f1-4e78-aa38-3b4bbf29d352"
      decimals="0"
      id="F_6b93fbad-04bf-4167-9734-c70760542b3f"
      unitRef="U_USD">8028000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
