<?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_7ade1180-2b7c-4d32-8d58-3c97f3eda119">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-09-18</startDate>
            <endDate>2025-09-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_2cde26dd-5938-4d50-9890-8e2c3604f400">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_a8327c1f-4ed2-4cde-9da0-68aeb9f4a0ca">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_45d8991f-dfbd-41f8-862d-e7a1fb2639d8">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_50a3a1a2-639a-437f-a43c-f07b1c10eeb5">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_40e984e5-f9e6-4546-b241-33a5cc26b162">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_daa26658-b295-44e3-91e6-2b4955e6d417">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_8fd75b05-4f4e-4d7d-bb9d-db9f856ef02b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_371533b1-11c1-45f3-9f68-b097f2dfeae4">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_d176a808-cbce-4e8c-952e-76646a9c67cf">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      id="F_9aa1e53f-7bf8-4543-811b-ed90c29f0826">&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;34,182,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_7ade1180-2b7c-4d32-8d58-3c97f3eda119"
      decimals="0"
      id="F_92635dce-9139-4476-83ad-c8fe3ccdb8ab"
      unitRef="U_USD">34182000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
